X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FApplications%2Faxwin4_src%2FServer%2Finclude%2Fvideo.hpp;h=9ca7b42f3c80a1cbce2abf6726e6fbdef4ecf257;hb=aa5e13445f3d9ab6e0c0049780f38daed443104f;hp=cf0440b2c37f8a45846164c80ec63add85514167;hpb=340e7923b1e95c39ac85a4b22af7f1b53b315cd9;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin4_src/Server/include/video.hpp b/Usermode/Applications/axwin4_src/Server/include/video.hpp index cf0440b2..9ca7b42f 100644 --- a/Usermode/Applications/axwin4_src/Server/include/video.hpp +++ b/Usermode/Applications/axwin4_src/Server/include/video.hpp @@ -8,13 +8,29 @@ #ifndef _VIDEO_H_ #define _VIDEO_H_ +#include #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(); }; };