Usermode/axwin4 - Starting on implementation
[tpg/acess2.git] / Usermode / Applications / axwin4_src / Server / compositor.cpp
diff --git a/Usermode/Applications/axwin4_src/Server/compositor.cpp b/Usermode/Applications/axwin4_src/Server/compositor.cpp
new file mode 100644 (file)
index 0000000..db943c5
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * Acess2 GUI v4
+ * - By John Hodge (thePowersGang)
+ *
+ * compositor.cpp
+ * - Window compositor
+ */
+#include <CVideo.hpp>
+#include <CCompositor.hpp>
+
+namespace AxWin {
+
+CCompositor*   CCompositor::s_instance;
+
+void CCompositor::Initialise(const CConfigCompositor& config)
+{
+       assert(!CCompositor::s_instance);
+       CCompositor::s_instance = new CCompositor(config);
+}
+
+CCompositor::CCompositor(const CConfigCompositor& config):
+       m_config(config)
+{
+       // 
+}
+
+IWindow* CCompositor::CreateWindow(CClient& client)
+{
+       return new CWindow(client);
+}
+
+void CCompositor::Redraw()
+{
+       // Redraw the screen and clear damage rects
+       if( m_damageRects.empty() )
+               return ;
+       
+       // For all windows, check for intersection with damage rect
+}
+
+void CCompositor::DamageArea(const Rect& area)
+{
+
+}
+
+}      // namespace AxWin
+

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