diff options
Diffstat (limited to 'src/uxn/devices/ppu.h')
-rw-r--r-- | src/uxn/devices/ppu.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/uxn/devices/ppu.h b/src/uxn/devices/ppu.h index 213dc75..0356b63 100644 --- a/src/uxn/devices/ppu.h +++ b/src/uxn/devices/ppu.h | |||
@@ -17,20 +17,14 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |||
17 | WITH REGARD TO THIS SOFTWARE. | 17 | WITH REGARD TO THIS SOFTWARE. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | typedef unsigned char Uint8; | ||
21 | typedef unsigned short Uint16; | ||
22 | typedef unsigned int Uint32; | ||
23 | |||
24 | typedef struct Ppu { | 20 | typedef struct Ppu { |
25 | Uint32 *bg, *fg; | 21 | u32 *bg, *fg; |
26 | Uint16 hor, ver, pad, width, height; | 22 | u16 hor, ver, pad, width, height; |
27 | } Ppu; | 23 | } Ppu; |
28 | 24 | ||
29 | int initppu(Ppu *p, Uint8 hor, Uint8 ver, Uint8 pad); | 25 | int initppu(Ppu *p, u8 hor, u8 ver, u8 pad); |
30 | void putcolors(Ppu *p, Uint8 *addr); | 26 | void putcolors(u8 *addr); |
31 | void putpixel(Ppu *p, Uint32 *layer, Uint16 x, Uint16 y, Uint8 color); | 27 | void putpixel(u32 *layer, u16 x, u16 y, u8 color); |
32 | void puticn(Ppu *p, Uint32 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint8 flipx, Uint8 flipy); | 28 | void puticn(u32 *layer, u16 x, u16 y, u8 *sprite, u8 color, u8 flipx, u8 flipy); |
33 | void putchr(Ppu *p, Uint32 *layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint8 flipx, Uint8 flipy); | 29 | void putchr(u32 *layer, u16 x, u16 y, u8 *sprite, u8 color, u8 flipx, u8 flipy); |
34 | void drawppu(Ppu *p); | ||
35 | void drawdebugger(Ppu *p, Uint8 *stack, Uint8 ptr); | ||
36 | #endif // UXNGBA_PPU_H | 30 | #endif // UXNGBA_PPU_H |