major gfx refactor
This commit is contained in:
parent
0c0aa792c1
commit
3c3e961995
58 changed files with 3681 additions and 2982 deletions
|
|
@ -6,10 +6,10 @@ typedef struct pxl8_atlas pxl8_atlas;
|
|||
|
||||
typedef struct pxl8_atlas_entry {
|
||||
bool active;
|
||||
i32 h, w, x, y;
|
||||
u8 log2_h, log2_w;
|
||||
u32 texture_id;
|
||||
i32 x, y, w, h;
|
||||
u32 tiled_base;
|
||||
u8 log2_w;
|
||||
} pxl8_atlas_entry;
|
||||
|
||||
static inline u32 pxl8_tile_addr(u32 u, u32 v, u8 log2_w) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue