Debian Codegraph @

sfc/ppu/screen/screen.hpp

raw symbols SCIP
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 struct Math {
23 struct Layer {
24 uint16 color;
25 bool color_enable;
26 } main, sub;
27 bool transparent;
28 bool addsub_mode;
29 bool color_halve;
30 } math;
31
32 inline void scanline();
33 inline void run();
34 inline void reset();
35
36 inline uint16 get_pixel_sub(bool hires);
37 inline uint16 get_pixel_main();
38 inline uint16 addsub(unsigned x, unsigned y);
39 inline uint16 get_color(unsigned palette);
40 inline uint16 get_direct_color(unsigned palette, unsigned tile);
41 inline uint16 fixed_color() const;
42
43 inline void serialize(serializer&);
44 inline Screen(PPU& self);
45
46 PPU& self;
47 friend class PPU;
48 };