aboutsummaryrefslogtreecommitdiffstats
path: root/src/ppu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ppu.h')
-rw-r--r--src/ppu.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/ppu.h b/src/ppu.h
new file mode 100644
index 0000000..852c207
--- /dev/null
+++ b/src/ppu.h
@@ -0,0 +1,20 @@
1/*
2Copyright (c) 2021 Devine Lu Linvega
3Copyright (c) 2021 Andrew Alderwick
4
5Permission to use, copy, modify, and distribute this software for any
6purpose with or without fee is hereby granted, provided that the above
7copyright notice and this permission notice appear in all copies.
8
9THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10WITH REGARD TO THIS SOFTWARE.
11*/
12
13typedef unsigned char Uint8;
14typedef unsigned short Uint16;
15typedef unsigned int Uint32;
16
17int ppu_init(void);
18void ppu_pixel(Uint8 layer, Uint16 x, Uint16 y, Uint8 color);
19void ppu_1bpp(Uint8 layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint8 flipx, Uint8 flipy);
20void ppu_2bpp(Uint8 layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint8 flipx, Uint8 flipy);