488d4d6c3a5ec43f2d7476d1a58a681ac220866d
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / include / CSurface.hpp
1 /*
2  */
3 #ifndef _CSURFACE_H_
4 #define _CSURFACE_H_
5
6 #include <cstdint>
7 #include "CRect.hpp"
8
9 namespace AxWin {
10
11 class CSurface
12 {
13 public:
14         CSurface(int x, int y, unsigned int w, unsigned int h);
15         ~CSurface();
16         
17         void Resize(unsigned int new_w, unsigned int new_h);
18         
19         void DrawScanline(unsigned int row, unsigned int x_ofs, unsigned int w, const void* data);
20         const uint32_t* GetScanline(unsigned int row, unsigned int x_ofs) const;
21         
22         CRect   m_rect;
23         uint32_t*       m_data;
24 };
25
26 };      // namespace AxWin
27
28 #endif
29

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