minor code trimming and reformatting
[drnoksnes] / tile.h
1 /*
2  * Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
3  *
4  * (c) Copyright 1996 - 2001 Gary Henderson (gary.henderson@ntlworld.com) and
5  *                           Jerremy Koot (jkoot@snes9x.com)
6  *
7  * Super FX C emulator code 
8  * (c) Copyright 1997 - 1999 Ivar (ivar@snes9x.com) and
9  *                           Gary Henderson.
10  * Super FX assembler emulator code (c) Copyright 1998 zsKnight and _Demo_.
11  *
12  * DSP1 emulator code (c) Copyright 1998 Ivar, _Demo_ and Gary Henderson.
13  * C4 asm and some C emulation code (c) Copyright 2000 zsKnight and _Demo_.
14  * C4 C code (c) Copyright 2001 Gary Henderson (gary.henderson@ntlworld.com).
15  *
16  * DOS port code contains the works of other authors. See headers in
17  * individual files.
18  *
19  * Snes9x homepage: http://www.snes9x.com
20  *
21  * Permission to use, copy, modify and distribute Snes9x in both binary and
22  * source form, for non-commercial purposes, is hereby granted without fee,
23  * providing that this license information and copyright notice appear with
24  * all copies and any derived work.
25  *
26  * This software is provided 'as-is', without any express or implied
27  * warranty. In no event shall the authors be held liable for any damages
28  * arising from the use of this software.
29  *
30  * Snes9x is freeware for PERSONAL USE only. Commercial users should
31  * seek permission of the copyright holders first. Commercial use includes
32  * charging money for Snes9x or software derived from Snes9x.
33  *
34  * The copyright holders request that bug fixes and improvements to the code
35  * should be forwarded to them so everyone can benefit from the modifications
36  * in future versions.
37  *
38  * Super NES and Super Nintendo Entertainment System are trademarks of
39  * Nintendo Co., Limited and its subsidiary companies.
40  */
41 #ifndef _TILE_H_
42 #define _TILE_H_
43
44 void DrawTile (uint32 Tile, uint32 Offset, uint32 StartLine,
45                uint32 LineCount);
46 void DrawClippedTile (uint32 Tile, uint32 Offset,
47                       uint32 StartPixel, uint32 Width,
48                       uint32 StartLine, uint32 LineCount);
49 void DrawLargePixel (uint32 Tile, uint32 Offset,
50                      uint32 StartPixel, uint32 Pixels,
51                      uint32 StartLine, uint32 LineCount);
52
53 void DrawTile16 (uint32 Tile, uint32 Offset, uint32 StartLine,
54                  uint32 LineCount);
55 void DrawClippedTile16 (uint32 Tile, uint32 Offset,
56                         uint32 StartPixel, uint32 Width,
57                         uint32 StartLine, uint32 LineCount);
58 void DrawLargePixel16 (uint32 Tile, uint32 Offset,
59                        uint32 StartPixel, uint32 Pixels,
60                        uint32 StartLine, uint32 LineCount);
61
62 void DrawTile16Add (uint32 Tile, uint32 Offset, uint32 StartLine,
63                     uint32 LineCount);
64
65 void DrawClippedTile16Add (uint32 Tile, uint32 Offset,
66                            uint32 StartPixel, uint32 Width,
67                            uint32 StartLine, uint32 LineCount);
68
69 void DrawTile16Add1_2 (uint32 Tile, uint32 Offset, uint32 StartLine,
70                        uint32 LineCount);
71
72 void DrawClippedTile16Add1_2 (uint32 Tile, uint32 Offset,
73                               uint32 StartPixel, uint32 Width,
74                               uint32 StartLine, uint32 LineCount);
75
76 void DrawTile16FixedAdd1_2 (uint32 Tile, uint32 Offset, uint32 StartLine,
77                             uint32 LineCount);
78
79 void DrawClippedTile16FixedAdd1_2 (uint32 Tile, uint32 Offset,
80                                    uint32 StartPixel, uint32 Width,
81                                    uint32 StartLine, uint32 LineCount);
82
83 void DrawTile16Sub (uint32 Tile, uint32 Offset, uint32 StartLine,
84                     uint32 LineCount);
85
86 void DrawClippedTile16Sub (uint32 Tile, uint32 Offset,
87                            uint32 StartPixel, uint32 Width,
88                            uint32 StartLine, uint32 LineCount);
89
90 void DrawTile16Sub1_2 (uint32 Tile, uint32 Offset, uint32 StartLine,
91                        uint32 LineCount);
92
93 void DrawClippedTile16Sub1_2 (uint32 Tile, uint32 Offset,
94                               uint32 StartPixel, uint32 Width,
95                               uint32 StartLine, uint32 LineCount);
96
97 void DrawTile16FixedSub1_2 (uint32 Tile, uint32 Offset, uint32 StartLine,
98                             uint32 LineCount);
99
100 void DrawClippedTile16FixedSub1_2 (uint32 Tile, uint32 Offset,
101                                    uint32 StartPixel, uint32 Width,
102                                    uint32 StartLine, uint32 LineCount);
103
104 void DrawLargePixel16Add (uint32 Tile, uint32 Offset,
105                           uint32 StartPixel, uint32 Pixels,
106                           uint32 StartLine, uint32 LineCount);
107
108 void DrawLargePixel16Add1_2 (uint32 Tile, uint32 Offset,
109                              uint32 StartPixel, uint32 Pixels,
110                              uint32 StartLine, uint32 LineCount);
111
112 void DrawLargePixel16Sub (uint32 Tile, uint32 Offset,
113                           uint32 StartPixel, uint32 Pixels,
114                           uint32 StartLine, uint32 LineCount);
115
116 void DrawLargePixel16Sub1_2 (uint32 Tile, uint32 Offset,
117                              uint32 StartPixel, uint32 Pixels,
118                              uint32 StartLine, uint32 LineCount);
119
120 void DrawHiResClippedTile16 (uint32 Tile, uint32 Offset,
121                         uint32 StartPixel, uint32 Width,
122                         uint32 StartLine, uint32 LineCount);
123
124 void DrawHiResTile16 (uint32 Tile, uint32 Offset,
125                         uint32 StartLine, uint32 LineCount);
126
127 #endif