mirror of https://github.com/bsnes-emu/bsnes.git
23 lines
405 B
C++
23 lines
405 B
C++
struct Video {
|
|
uint32_t* palette;
|
|
void generate_palette(Emulator::Interface::PaletteMode mode);
|
|
Video();
|
|
~Video();
|
|
|
|
private:
|
|
bool hires;
|
|
unsigned line_width[240];
|
|
|
|
void update();
|
|
void scanline();
|
|
void init();
|
|
|
|
static const uint8_t gamma_ramp[32];
|
|
static const uint8_t cursor[15 * 15];
|
|
void draw_cursor(uint16_t color, int x, int y);
|
|
|
|
friend class System;
|
|
};
|
|
|
|
extern Video video;
|