diff options
Diffstat (limited to 'src/ppu.h')
-rw-r--r-- | src/ppu.h | 20 |
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 | /* | ||
2 | Copyright (c) 2021 Devine Lu Linvega | ||
3 | Copyright (c) 2021 Andrew Alderwick | ||
4 | |||
5 | Permission to use, copy, modify, and distribute this software for any | ||
6 | purpose with or without fee is hereby granted, provided that the above | ||
7 | copyright notice and this permission notice appear in all copies. | ||
8 | |||
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | WITH REGARD TO THIS SOFTWARE. | ||
11 | */ | ||
12 | |||
13 | typedef unsigned char Uint8; | ||
14 | typedef unsigned short Uint16; | ||
15 | typedef unsigned int Uint32; | ||
16 | |||
17 | int ppu_init(void); | ||
18 | void ppu_pixel(Uint8 layer, Uint16 x, Uint16 y, Uint8 color); | ||
19 | void ppu_1bpp(Uint8 layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint8 flipx, Uint8 flipy); | ||
20 | void ppu_2bpp(Uint8 layer, Uint16 x, Uint16 y, Uint8 *sprite, Uint8 color, Uint8 flipx, Uint8 flipy); | ||