Skip to content

Commit

Permalink
Update graphx header
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Feb 10, 2017
1 parent 15a573e commit 15b203c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CEdev/include/lib/ce/graphx.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,17 @@ typedef struct gfx_tilemap {
uint8_t tile_width; /* individual tile width */
uint8_t draw_height; /* number of rows to draw in the tilemap */
uint8_t draw_width; /* number of cols to draw tilemap */
uint8_t type_width; /* 2^type_width = tile_width */
uint8_t type_height; /* 2^type_height = tile_height */
uint8_t type_width; /* 2^type_width = tile_width (see enum gfx_tilemap_type) */
uint8_t type_height; /* 2^type_height = tile_height (see enum gfx_tilemap_type) */
uint8_t height; /* total number of rows in the tilemap */
uint8_t width; /* total number of cols in the tilemap */
uint8_t y_loc; /* y pixel location to begin drawing at */
uint24_t x_loc; /* x pixel location to begin drawing at */
} gfx_tilemap_t;

typedef enum gfx_tilemap_type {
gfx_tile_2_pixel = 1, /* Set when using 2 pixel tiles */
gfx_tile_no_pow2 = 0, /* Set when using non powers of 2 */
gfx_tile_2_pixel, /* Set when using 2 pixel tiles */
gfx_tile_4_pixel, /* Set when using 4 pixel tiles */
gfx_tile_8_pixel, /* Set when using 8 pixel tiles */
gfx_tile_16_pixel, /* Set when using 16 pixel tiles */
Expand Down

0 comments on commit 15b203c

Please sign in to comment.