Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/libsnes/bsnes/snes/system/video.hpp
2 views
1
struct Video {
2
enum class Format : unsigned { RGB30, RGB24, RGB16, RGB15 };
3
unsigned *palette;
4
5
unsigned palette30(unsigned color);
6
void generate(Format format);
7
Video();
8
~Video();
9
10
void update();
11
12
private:
13
bool hires;
14
unsigned line_width[240];
15
16
void scanline();
17
void init();
18
19
static const uint8_t cursor[15 * 15];
20
void draw_cursor(uint16_t color, int x, int y);
21
22
friend class System;
23
};
24
25
extern Video video;
26
27