Mercurial > hg > dmlib
comparison tools/lib64gfx.h @ 2327:c8c58147e6e5
Change separate booleans in DMC64Sprite to a single flags field and define
flags in enum.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Sep 2019 11:22:18 +0300 |
parents | 9f150c0e1467 |
children | 0085ce04788b |
comparison
equal
deleted
inserted
replaced
2326:9f150c0e1467 | 2327:c8c58147e6e5 |
---|---|
173 DF_DECODE = 0x0001, | 173 DF_DECODE = 0x0001, |
174 DF_ENCODE = 0x0002, | 174 DF_ENCODE = 0x0002, |
175 }; | 175 }; |
176 | 176 |
177 | 177 |
178 // Sprite flags (DMC64Sprite::flags) | |
179 enum | |
180 { | |
181 D64_SPRF_MC = 0x0001, | |
182 D64_SPRF_X_EXPAND = 0x0002, | |
183 D64_SPRF_Y_EXPAND = 0x0002, | |
184 }; | |
185 | |
186 | |
178 typedef struct | 187 typedef struct |
179 { | 188 { |
180 char *name; | 189 char *name; |
181 char *desc; | 190 char *desc; |
182 DMColor colors[D64_NCOLORS]; | 191 DMColor colors[D64_NCOLORS]; |
201 | 210 |
202 | 211 |
203 typedef struct | 212 typedef struct |
204 { | 213 { |
205 int xc, yc; // Sprite coordinates (XXX TODO: borders etc.) | 214 int xc, yc; // Sprite coordinates (XXX TODO: borders etc.) |
206 BOOL multicolor, xexpand, yexpand; | 215 int flags; // D64_SPRF_* flags |
207 int color; // Color | 216 int color; // Color |
208 int sprnum; // Physical sprite number for priority checking | 217 int sprnum; // Physical sprite number for priority checking |
209 | 218 |
210 Uint8 *data; // "const" pointer to sprite data, do not deallocate | 219 Uint8 *data; // "const" pointer to sprite data, do not deallocate |
211 } DMC64Sprite; | 220 } DMC64Sprite; |