~foura/uxn900

ref: d2a2bcc652c7280b4c71b0a0dd48e55199f5337e uxn900/inc/dev/screen.h -rw-r--r-- 491 bytes
d2a2bcc6james palmer misc: move include dir out of src 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
typedef struct Layer Layer;
typedef struct Screen Screen;

struct Layer {
	Uint8 pixels[PHYSFBWIDTH * PHYSFBHEIGHT];
	Uint8 changed;
};

struct Screen {
	Uint16 palette[4], *pixels;
	Uint16 width, height;
	Layer fg, bg;
};

extern Screen uxn_screen;

void screen_init(Screen *scr);
void screen_palette(Screen *scr, Uint8 *addr);
void screen_clear(Screen *scr, Layer *layer);
void screen_redraw(Screen *scr);

Uint8 screen_dei(Device *d, Uint8 port);
void  screen_deo(Device *d, Uint8 port);