3 * - By John Hodge (thePowersGang)
9 #include <CCompositor.hpp>
13 CCompositor* CCompositor::s_instance;
15 void CCompositor::Initialise(const CConfigCompositor& config)
17 assert(!CCompositor::s_instance);
18 CCompositor::s_instance = new CCompositor(config);
21 CCompositor::CCompositor(const CConfigCompositor& config):
27 IWindow* CCompositor::CreateWindow(CClient& client)
29 return new CWindow(client);
32 void CCompositor::Redraw()
34 // Redraw the screen and clear damage rects
35 if( m_damageRects.empty() )
38 // For all windows, check for intersection with damage rect
41 void CCompositor::DamageArea(const Rect& area)