Usermode/axwin4 - Starting on implementation
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / compositor.cpp
1 /*
2  * Acess2 GUI v4
3  * - By John Hodge (thePowersGang)
4  *
5  * compositor.cpp
6  * - Window compositor
7  */
8 #include <CVideo.hpp>
9 #include <CCompositor.hpp>
10
11 namespace AxWin {
12
13 CCompositor*    CCompositor::s_instance;
14
15 void CCompositor::Initialise(const CConfigCompositor& config)
16 {
17         assert(!CCompositor::s_instance);
18         CCompositor::s_instance = new CCompositor(config);
19 }
20
21 CCompositor::CCompositor(const CConfigCompositor& config):
22         m_config(config)
23 {
24         // 
25 }
26
27 IWindow* CCompositor::CreateWindow(CClient& client)
28 {
29         return new CWindow(client);
30 }
31
32 void CCompositor::Redraw()
33 {
34         // Redraw the screen and clear damage rects
35         if( m_damageRects.empty() )
36                 return ;
37         
38         // For all windows, check for intersection with damage rect
39 }
40
41 void CCompositor::DamageArea(const Rect& area)
42 {
43
44 }
45
46 }       // namespace AxWin
47

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