X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin4_src%2FServer%2Finclude%2Fvideo.hpp;fp=Usermode%2FApplications%2Faxwin4_src%2FServer%2Finclude%2Fvideo.hpp;h=3738099b4e6e1d8a636b8951dc45d136c86af2ee;hp=0000000000000000000000000000000000000000;hb=845b6f9d90bb87b5e760e4d49aa93b0e003ab750;hpb=67a7fe2bb79eceaf10c572a99bd8345c4e81cf5b diff --git a/Usermode/Applications/axwin4_src/Server/include/video.hpp b/Usermode/Applications/axwin4_src/Server/include/video.hpp new file mode 100644 index 00000000..3738099b --- /dev/null +++ b/Usermode/Applications/axwin4_src/Server/include/video.hpp @@ -0,0 +1,41 @@ +/* + * Acess2 GUI v4 + * - By John Hodge (thePowersGang) + * + * video.hpp + * - Graphics Interface Header + */ +#ifndef _VIDEO_H_ +#define _VIDEO_H_ + +#include +#include "CConfigVideo.hpp" + +namespace AxWin { + +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); + unsigned int width() const { return m_width; } + unsigned int height() const { return m_height; } + + 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(); +}; + +}; + +#endif +