Path: blob/master/libsnes/bsnes/snes/ppu/screen/screen.hpp
2 views
struct Screen {1uint32 *output;23struct Regs {4bool addsub_mode;5bool direct_color;67bool color_mode;8bool color_halve;9bool bg1_color_enable;10bool bg2_color_enable;11bool bg3_color_enable;12bool bg4_color_enable;13bool oam_color_enable;14bool back_color_enable;1516uint5 color_b;17uint5 color_g;18uint5 color_r;19} regs;2021void scanline();22void run();23void reset();2425uint32 get_pixel(bool swap);26uint16 addsub(unsigned x, unsigned y, bool halve);27uint16 get_color(unsigned palette);28uint16 get_direct_color(unsigned palette, unsigned tile);2930void serialize(serializer&);31Screen(PPU &self);3233PPU &self;34friend class PPU;35};363738