Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 2318:b2d8b054b2f7
Comment adjustments.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 03 Sep 2019 10:15:41 +0300 |
parents | ffdc51f0c9cd |
children | 5b4071a74289 |
comparison
equal
deleted
inserted
replaced
2317:a566700297c9 | 2318:b2d8b054b2f7 |
---|---|
135 | 135 |
136 DO_LAST, // Last opcode, end processing | 136 DO_LAST, // Last opcode, end processing |
137 }; | 137 }; |
138 | 138 |
139 | 139 |
140 // "Subjects" of operations (op->subject) | 140 // "Subjects" of operations (DMC64EncDecOp::subject) |
141 enum | 141 enum |
142 { | 142 { |
143 DS_COLOR_RAM, | 143 DS_COLOR_RAM, |
144 DS_BITMAP_RAM, | 144 DS_BITMAP_RAM, |
145 DS_SCREEN_RAM, | 145 DS_SCREEN_RAM, |
157 | 157 |
158 DS_LAST | 158 DS_LAST |
159 }; | 159 }; |
160 | 160 |
161 | 161 |
162 // Operation flags (op->flags) | 162 // Operation flags (DMC64EncDecOp::flags) |
163 enum | 163 enum |
164 { | 164 { |
165 DF_NORMAL = 0xffff, | 165 DF_NORMAL = 0xffff, |
166 DF_DECODE = 0x0001, | 166 DF_DECODE = 0x0001, |
167 DF_ENCODE = 0x0002, | 167 DF_ENCODE = 0x0002, |
176 } DMC64Palette; | 176 } DMC64Palette; |
177 | 177 |
178 | 178 |
179 typedef struct | 179 typedef struct |
180 { | 180 { |
181 int dither; // Dither mode (D64_DITH_*) | 181 int dither; // Dither mode (D64_DITH_*) |
182 BOOL aspect; // Correct pixel aspect ratio? | 182 BOOL aspect; // Correct pixel aspect ratio? |
183 | 183 |
184 DMPalette *pal; // Use this palette | 184 DMPalette *pal; // Use this palette |
185 DMC64Palette *cpal; // If ^pal == NULL, use this C64 palette | 185 DMC64Palette *cpal; // If ^pal == NULL, use this C64 palette |
186 } DMC64ImageConvSpec; | 186 } DMC64ImageConvSpec; |
187 | 187 |
188 | 188 |
189 typedef struct | 189 typedef struct |
190 { | 190 { |
197 { | 197 { |
198 int xc, yc; // Sprite coordinates (XXX TODO: borders etc.) | 198 int xc, yc; // Sprite coordinates (XXX TODO: borders etc.) |
199 BOOL multicolor, xexpand, yexpand; | 199 BOOL multicolor, xexpand, yexpand; |
200 int color; // Color | 200 int color; // Color |
201 int sprnum; // Physical sprite number for priority checking | 201 int sprnum; // Physical sprite number for priority checking |
202 | |
202 Uint8 *data; // "const" pointer to sprite data, do not deallocate | 203 Uint8 *data; // "const" pointer to sprite data, do not deallocate |
203 } DMC64Sprite; | 204 } DMC64Sprite; |
204 | 205 |
205 | 206 |
206 typedef struct _DMC64ImageCommonFormat DMC64ImageCommonFormat; | 207 typedef struct _DMC64ImageCommonFormat DMC64ImageCommonFormat; |