aboutsummaryrefslogtreecommitdiffstats
path: root/src/ppu.h
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2023-04-20 11:37:34 +0200
committerBad Diode <bd@badd10de.dev>2023-04-20 11:37:34 +0200
commit773cd197a323d2f9b701addd63e30d54e43c74f5 (patch)
treea50a76dfd6111af296cddab1c407f1c4f1ae6128 /src/ppu.h
parent1d1e1123f8b76c40ba57427367f34b6f5c61de85 (diff)
downloaduxngba-773cd197a323d2f9b701addd63e30d54e43c74f5.tar.gz
uxngba-773cd197a323d2f9b701addd63e30d54e43c74f5.zip
Add optional DMA usage on flipbuf
This will copy an entire row of tiles instead of per tile copy, but for applications that clear the screen on each frame it will be more efficient.
Diffstat (limited to 'src/ppu.h')
-rw-r--r--src/ppu.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ppu.h b/src/ppu.h
index f12e1a7..bd9120c 100644
--- a/src/ppu.h
+++ b/src/ppu.h
@@ -17,12 +17,6 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
17WITH REGARD TO THIS SOFTWARE. 17WITH REGARD TO THIS SOFTWARE.
18*/ 18*/
19 19
20typedef struct Ppu {
21 u32 *bg, *fg;
22 u16 hor, ver, width, height;
23} Ppu;
24
25int initppu(Ppu *p, u8 hor, u8 ver);
26void putcolors(u8 *addr); 20void putcolors(u8 *addr);
27void ppu_pixel(u32 *layer, u16 x, u16 y, u8 color); 21void ppu_pixel(u32 *layer, u16 x, u16 y, u8 color);
28void ppu_1bpp(u32 *layer, u16 x, u16 y, u8 *sprite, u8 color, u8 flipx, u8 flipy); 22void ppu_1bpp(u32 *layer, u16 x, u16 y, u8 *sprite, u8 color, u8 flipx, u8 flipy);