File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -129,16 +129,17 @@ typedef struct gfx_tilemap {
129
129
uint8_t tile_width ; /* individual tile width */
130
130
uint8_t draw_height ; /* number of rows to draw in the tilemap */
131
131
uint8_t draw_width ; /* number of cols to draw tilemap */
132
- uint8_t type_width ; /* 2^type_width = tile_width */
133
- uint8_t type_height ; /* 2^type_height = tile_height */
132
+ uint8_t type_width ; /* 2^type_width = tile_width (see enum gfx_tilemap_type) */
133
+ uint8_t type_height ; /* 2^type_height = tile_height (see enum gfx_tilemap_type) */
134
134
uint8_t height ; /* total number of rows in the tilemap */
135
135
uint8_t width ; /* total number of cols in the tilemap */
136
136
uint8_t y_loc ; /* y pixel location to begin drawing at */
137
137
uint24_t x_loc ; /* x pixel location to begin drawing at */
138
138
} gfx_tilemap_t ;
139
139
140
140
typedef enum gfx_tilemap_type {
141
- gfx_tile_2_pixel = 1 , /* Set when using 2 pixel tiles */
141
+ gfx_tile_no_pow2 = 0 , /* Set when using non powers of 2 */
142
+ gfx_tile_2_pixel , /* Set when using 2 pixel tiles */
142
143
gfx_tile_4_pixel , /* Set when using 4 pixel tiles */
143
144
gfx_tile_8_pixel , /* Set when using 8 pixel tiles */
144
145
gfx_tile_16_pixel , /* Set when using 16 pixel tiles */
You can’t perform that action at this time.
0 commit comments