X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin4_src%2FServer%2Finclude%2FCSurface.hpp;h=ac20d0f57019b3c0c9a4232601bc3e171446c4a8;hb=7da746abd4b6296322f6bf8b228d678098e1fd24;hp=91b61f8c5a48aa83ac9a0d4186a2a6711eff1a88;hpb=b471bc9adca2cf2126c2b579bf0b33cedd2839a4;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin4_src/Server/include/CSurface.hpp b/Usermode/Applications/axwin4_src/Server/include/CSurface.hpp index 91b61f8c..ac20d0f5 100644 --- a/Usermode/Applications/axwin4_src/Server/include/CSurface.hpp +++ b/Usermode/Applications/axwin4_src/Server/include/CSurface.hpp @@ -11,13 +11,22 @@ namespace AxWin { class CSurface { public: - CSurface(unsigned int x, unsigned int y, unsigned int w, unsigned int h); + CSurface(int x, int y, unsigned int w, unsigned int h); ~CSurface(); + + uint64_t GetSHMHandle(); + + void Resize(unsigned int new_w, unsigned int new_h); + void DrawScanline(unsigned int row, unsigned int x_ofs, unsigned int w, const void* data); + void BlendScanline(unsigned int row, unsigned int x_ofs, unsigned int w, const void* data); + void FillScanline(unsigned int row, unsigned int x, unsigned int w, uint32_t colour); const uint32_t* GetScanline(unsigned int row, unsigned int x_ofs) const; CRect m_rect; uint32_t* m_data; +private: + int m_fd; }; }; // namespace AxWin