Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/snes/ppu/screen/screen.hpp
2 views
1
struct Screen {
2
uint32 *output;
3
4
struct Regs {
5
bool addsub_mode;
6
bool direct_color;
7
8
bool color_mode;
9
bool color_halve;
10
bool bg1_color_enable;
11
bool bg2_color_enable;
12
bool bg3_color_enable;
13
bool bg4_color_enable;
14
bool oam_color_enable;
15
bool back_color_enable;
16
17
uint5 color_b;
18
uint5 color_g;
19
uint5 color_r;
20
} regs;
21
22
void scanline();
23
void run();
24
void reset();
25
26
uint32 get_pixel(bool swap);
27
uint16 addsub(unsigned x, unsigned y, bool halve);
28
uint16 get_color(unsigned palette);
29
uint16 get_direct_color(unsigned palette, unsigned tile);
30
31
void serialize(serializer&);
32
Screen(PPU &self);
33
34
PPU &self;
35
friend class PPU;
36
};
37
38