-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.h
More file actions
51 lines (47 loc) · 1.53 KB
/
render.h
File metadata and controls
51 lines (47 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#pragma once
#include <stdint.h>
extern void vga_init();
extern void vga_main();
#define _RGB(r, g, b) ( \
((uint)(r) << 8) | \
((uint)(g) << 4) | \
((uint)(b) << 0) \
)
#define _RGBHALF 0x777
#if 0
#define RGB_BLACK _RGB(0x0,0x0,0x0)
#define RGB_MAGENTA _RGB(0x9,0x0,0x8)
#define RGB_DBLUE _RGB(0x2,0x3,0xd)
#define RGB_HVIOLET _RGB(0xb,0x3,0xf)
#define RGB_DGREEN _RGB(0x0,0x7,0x0)
#define RGB_DGRAY _RGB(0x4,0x4,0x4)
#define RGB_HGRAY _RGB(0x7,0x7,0x7)
#define RGB_HBLUE _RGB(0x0,0xa,0xe)
#define RGB_LBLUE _RGB(0x9,0xd,0xf)
#define RGB_BROWN _RGB(0x6,0x4,0x0)
#define RGB_HORANGE _RGB(0xf,0x5,0x2)
#define RGB_LGRAY _RGB(0x9,0x9,0x9)
#define RGB_PINK _RGB(0xf,0x8,0xe)
#define RGB_HGREEN _RGB(0x4,0xc,0x0)
#define RGB_YELLOW _RGB(0xd,0xd,0x1)
#define RGB_AQUA _RGB(0x6,0xf,0x8)
#define RGB_WHITE _RGB(0xf,0xf,0xf)
#else
#define RGB_BLACK _RGB(0x0,0x0,0x0) //
#define RGB_MAGENTA _RGB(0x9,0x0,0x1) //
#define RGB_DBLUE _RGB(0x4,0xc,0xb) //
#define RGB_HVIOLET _RGB(0xd,0xc,0xf) //
#define RGB_DGREEN _RGB(0x0,0xe,0x0) //
#define RGB_DGRAY _RGB(0x2,0x2,0x2) //
#define RGB_HGRAY _RGB(0xe,0xe,0xe) //
#define RGB_HBLUE _RGB(0x0,0x5,0x7) //
#define RGB_LBLUE _RGB(0x9,0xb,0xf) //
#define RGB_BROWN _RGB(0x6,0x2,0x0) //
#define RGB_HORANGE _RGB(0xf,0xa,0x4) //
#define RGB_LGRAY _RGB(0x9,0x9,0x9) //
#define RGB_PINK _RGB(0xf,0x1,0x7) //
#define RGB_HGREEN _RGB(0x2,0x3,0x0) //
#define RGB_YELLOW _RGB(0xb,0xb,0x8) //
#define RGB_AQUA _RGB(0x6,0xf,0x1) //
#define RGB_WHITE _RGB(0xf,0xf,0xf) //
#endif