9ca7b42f3c80a1cbce2abf6726e6fbdef4ecf257
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / video.hpp
1 /*
2  * Acess2 GUI v4
3  * - By John Hodge (thePowersGang) 
4  *
5  * video.hpp
6  * - Graphics Interface Header
7  */
8 #ifndef _VIDEO_H_
9 #define _VIDEO_H_
10
11 #include <cstdint>
12 #include "CConfigVideo.hpp"
13
14 namespace AxWin {
15
16 class CVideo
17 {
18          int    m_fd;
19         unsigned int    m_width;
20         unsigned int    m_height;
21          int    m_bufferFormat;
22 public:
23         CVideo(const CConfigVideo& config);
24
25         void GetDims(unsigned int& w, unsigned int& h); 
26
27         void BlitLine(const uint32_t* src, unsigned int dst_y, unsigned int dst_x, unsigned int width);
28         void Flush();
29         void SetCursorPos(int X, int Y);
30
31 private:
32         void SetBufFormat(unsigned int FormatID);
33         void SetCursorBitmap();
34 };
35
36 };
37
38 #endif
39

UCC git Repository :: git.ucc.asn.au