Usermode/AxWin4 - Added text rendering (very hacky using VGA font)
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / CSurface.hpp
index 91b61f8..ac20d0f 100644 (file)
@@ -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

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