root / lab5 / graphics.h @ 112
History | View | Annotate | Download (838 Bytes)
1 | 95 | up20180655 | #ifndef GRAPHICS_H_INCLUDED
|
---|---|---|---|
2 | #define GRAPHICS_H_INCLUDED
|
||
3 | |||
4 | 99 | up20180655 | #include <lcom/lcf.h> |
5 | 95 | up20180655 | #include <stdint.h> |
6 | |||
7 | 99 | up20180655 | int (get_permission)(unsigned int base_addr, unsigned int size); |
8 | |||
9 | int (get_permissions_first_mbyte)(void); |
||
10 | |||
11 | 103 | up20180655 | int (vbe_get_mode_information)(uint16_t mode);
|
12 | 99 | up20180655 | |
13 | 103 | up20180655 | phys_bytes get_phys_addr(void);
|
14 | 99 | up20180655 | |
15 | 103 | up20180655 | unsigned int get_vram_size(void); |
16 | |||
17 | uint16_t get_XRes(void);
|
||
18 | |||
19 | uint16_t get_YRes(void);
|
||
20 | |||
21 | uint16_t get_bits_pixel(void);
|
||
22 | |||
23 | 105 | up20180655 | uint16_t get_bytes_pixel(void);
|
24 | |||
25 | 111 | up20180642 | uint16_t get_RedMaskSize(void);
|
26 | |||
27 | uint16_t get_GreenMaskSize(void);
|
||
28 | |||
29 | uint16_t get_BlueMaskSize(void);
|
||
30 | |||
31 | 103 | up20180655 | int (map_vram)(void); |
32 | |||
33 | 99 | up20180655 | int (free_memory)(void); |
34 | |||
35 | 105 | up20180655 | int (set_pixel)(uint16_t row, uint16_t col, uint32_t color);
|
36 | |||
37 | 95 | up20180655 | /**
|
38 | * @brief
|
||
39 | * @param mode
|
||
40 | * @return
|
||
41 | */
|
||
42 | int (set_graphics_mode)(uint16_t mode);
|
||
43 | |||
44 | #endif /* end of include guard: GRAPHICS_H_INCLUDED */ |