2011-09-24 09:51:08 +00:00
|
|
|
struct Video {
|
2011-10-27 13:30:19 +00:00
|
|
|
Video();
|
|
|
|
~Video();
|
2015-11-14 00:52:51 +00:00
|
|
|
auto generate_palette(Emulator::Interface::PaletteMode mode) -> void;
|
|
|
|
|
|
|
|
uint32_t* palette = nullptr;
|
2011-10-27 13:30:19 +00:00
|
|
|
|
2010-08-09 13:33:44 +00:00
|
|
|
private:
|
2011-04-30 13:12:15 +00:00
|
|
|
bool hires;
|
2015-11-14 00:52:51 +00:00
|
|
|
uint line_width[240];
|
2010-08-09 13:28:56 +00:00
|
|
|
|
2015-11-14 00:52:51 +00:00
|
|
|
auto update() -> void;
|
|
|
|
auto scanline() -> void;
|
|
|
|
auto init() -> void;
|
2010-08-09 13:28:56 +00:00
|
|
|
|
2015-11-14 00:52:51 +00:00
|
|
|
static const uint8 gamma_ramp[32];
|
|
|
|
static const uint8 cursor[15 * 15];
|
|
|
|
auto draw_cursor(uint16 color, int x, int y) -> void;
|
2010-08-09 13:28:56 +00:00
|
|
|
|
|
|
|
friend class System;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern Video video;
|