root / proj / include / graph_macros.h @ 216
History | View | Annotate | Download (1.46 KB)
1 |
#ifndef GRAPHICS_MACROS_H_INCLUDED
|
---|---|
2 |
#define GRAPHICS_MACROS_H_INCLUDED
|
3 |
|
4 |
#define VC_BIOS_SERV 0x10 /** @brief Interrupt service of video card */ |
5 |
#define VBE_CALL 0x4F /** @brief VBE call function specifier */ |
6 |
|
7 |
#define MBYTE_BASE 0x0 /** @brief Base address (zero address) */ |
8 |
#define MBYTE_SIZE 0xFFFFF /** @brief Size of a mebibyte */ |
9 |
|
10 |
// Graphics Functions
|
11 |
#define VBE_CTRL_INFO 0x00 /** @brief Get VBE Controller Information */ |
12 |
#define VBE_MD_INFO 0x01 /** @brief Get VBE Mode Information */ |
13 |
#define SET_VBE_MD 0x02 /** @brief Set VBE Mode */ |
14 |
|
15 |
// Error codes (AH)
|
16 |
#define AH_SUCCESS 0x00 /** @brief Success code on BIOS call */ |
17 |
#define AH_FUNC_CALL_FAIL 0x01 /** @brief Function call failed */ |
18 |
#define AH_FUNC_NOT_SUPP 0x02 /** @brief Function call is not supported in current HW configuration */ |
19 |
#define AH_FUNC_INVALID 0x03 /** @brief Invalid function in current video mode */ |
20 |
|
21 |
// Graphics modes
|
22 |
#define INDEXED_1024_768 0x105 |
23 |
#define DIRECT_640_480_888 0x110 |
24 |
#define DIRECT_800_600_888 0x115 |
25 |
#define DIRECT_1024_768_888 0x118 |
26 |
#define DIRECT_1280_1024_565 0x11A |
27 |
#define DIRECT_1280_1024_888 0x11B |
28 |
#define LINEAR_FRAME_BUFFER_MD BIT(14) |
29 |
|
30 |
// Colors in RBG (8 bit)
|
31 |
#define BLACK 0x000000 |
32 |
#define WHITE 0xFFFFFF |
33 |
|
34 |
// Alpha
|
35 |
#define ALPHA_THRESHOLD 0x7F |
36 |
|
37 |
#endif /* end of include guard: GRAPHICS_MACROS_H_INCLUDED */ |