workaround a problem with the harmattan gcc
[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 #include "gfx.h"
45
46 START_EXTERN_C
47
48 void DrawTile16 (uint32 Tile, tile_offset_t Offset, uint32 StartLine,
49                  uint32 LineCount);
50 void DrawClippedTile16 (uint32 Tile, tile_offset_t Offset,
51                         uint32 StartPixel, uint32 Width,
52                         uint32 StartLine, uint32 LineCount);
53 void DrawLargePixel16 (uint32 Tile, tile_offset_t Offset,
54                        uint32 StartPixel, uint32 Pixels,
55                        uint32 StartLine, uint32 LineCount);
56
57 void DrawTile16Add (uint32 Tile, tile_offset_t Offset, uint32 StartLine,
58                     uint32 LineCount);
59
60 void DrawClippedTile16Add (uint32 Tile, tile_offset_t Offset,
61                            uint32 StartPixel, uint32 Width,
62                            uint32 StartLine, uint32 LineCount);
63
64 void DrawTile16Add1_2 (uint32 Tile, tile_offset_t Offset, uint32 StartLine,
65                        uint32 LineCount);
66
67 void DrawClippedTile16Add1_2 (uint32 Tile, tile_offset_t Offset,
68                               uint32 StartPixel, uint32 Width,
69                               uint32 StartLine, uint32 LineCount);
70
71 void DrawTile16FixedAdd1_2 (uint32 Tile, tile_offset_t Offset, uint32 StartLine,
72                             uint32 LineCount);
73
74 void DrawClippedTile16FixedAdd1_2 (uint32 Tile, tile_offset_t Offset,
75                                    uint32 StartPixel, uint32 Width,
76                                    uint32 StartLine, uint32 LineCount);
77
78 void DrawTile16Sub (uint32 Tile, tile_offset_t Offset, uint32 StartLine,
79                     uint32 LineCount);
80
81 void DrawClippedTile16Sub (uint32 Tile, tile_offset_t Offset,
82                            uint32 StartPixel, uint32 Width,
83                            uint32 StartLine, uint32 LineCount);
84
85 void DrawTile16Sub1_2 (uint32 Tile, tile_offset_t Offset, uint32 StartLine,
86                        uint32 LineCount);
87
88 void DrawClippedTile16Sub1_2 (uint32 Tile, tile_offset_t Offset,
89                               uint32 StartPixel, uint32 Width,
90                               uint32 StartLine, uint32 LineCount);
91
92 void DrawTile16FixedSub1_2 (uint32 Tile, tile_offset_t Offset, uint32 StartLine,
93                             uint32 LineCount);
94
95 void DrawClippedTile16FixedSub1_2 (uint32 Tile, tile_offset_t Offset,
96                                    uint32 StartPixel, uint32 Width,
97                                    uint32 StartLine, uint32 LineCount);
98
99 void DrawLargePixel16Add (uint32 Tile, tile_offset_t Offset,
100                           uint32 StartPixel, uint32 Pixels,
101                           uint32 StartLine, uint32 LineCount);
102
103 void DrawLargePixel16Add1_2 (uint32 Tile, tile_offset_t Offset,
104                              uint32 StartPixel, uint32 Pixels,
105                              uint32 StartLine, uint32 LineCount);
106
107 void DrawLargePixel16Sub (uint32 Tile, tile_offset_t Offset,
108                           uint32 StartPixel, uint32 Pixels,
109                           uint32 StartLine, uint32 LineCount);
110
111 void DrawLargePixel16Sub1_2 (uint32 Tile, tile_offset_t Offset,
112                              uint32 StartPixel, uint32 Pixels,
113                              uint32 StartLine, uint32 LineCount);
114
115 void DrawHiResClippedTile16 (uint32 Tile, tile_offset_t Offset,
116                         uint32 StartPixel, uint32 Width,
117                         uint32 StartLine, uint32 LineCount);
118
119 void DrawHiResTile16 (uint32 Tile, tile_offset_t Offset,
120                         uint32 StartLine, uint32 LineCount);
121
122 END_EXTERN_C
123
124 #endif