Usermode/AxWin4 - Mouse input in progress
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / video.hpp
index cf0440b..9ca7b42 100644 (file)
@@ -8,13 +8,29 @@
 #ifndef _VIDEO_H_
 #define _VIDEO_H_
 
+#include <cstdint>
 #include "CConfigVideo.hpp"
 
 namespace AxWin {
-namespace Graphics {
 
-extern void Initialise(const CConfigVideo& config);
+class CVideo
+{
+        int    m_fd;
+       unsigned int    m_width;
+       unsigned int    m_height;
+        int    m_bufferFormat;
+public:
+       CVideo(const CConfigVideo& config);
 
+       void GetDims(unsigned int& w, unsigned int& h); 
+
+       void BlitLine(const uint32_t* src, unsigned int dst_y, unsigned int dst_x, unsigned int width);
+       void Flush();
+       void SetCursorPos(int X, int Y);
+
+private:
+       void SetBufFormat(unsigned int FormatID);
+       void SetCursorBitmap();
 };
 
 };

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