Usermode/AxWin4 - Send mouse/keyboard events to client
[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         unsigned int width()  const { return m_width;  }
27         unsigned int height() const { return m_height; }
28
29         void BlitLine(const uint32_t* src, unsigned int dst_y, unsigned int dst_x, unsigned int width);
30         void Flush();
31         void SetCursorPos(int X, int Y);
32
33 private:
34         void SetBufFormat(unsigned int FormatID);
35         void SetCursorBitmap();
36 };
37
38 };
39
40 #endif
41

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