]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/windows/drawcontext.cpp
Split platform-specific parts into separate directories
[libs/gui.git] / source / graphics / windows / drawcontext.cpp
diff --git a/source/graphics/windows/drawcontext.cpp b/source/graphics/windows/drawcontext.cpp
new file mode 100644 (file)
index 0000000..b887615
--- /dev/null
@@ -0,0 +1,34 @@
+#include <stdexcept>
+#include "drawcontext.h"
+#include "window.h"
+
+using namespace std;
+
+namespace Msp {
+namespace Graphics {
+
+DrawContext::DrawContext(Window &w):
+       display(w.get_display()),
+       window(w)
+{
+       throw runtime_error("no DrawContext support on windows");
+}
+
+DrawContext::~DrawContext()
+{ }
+
+unsigned DrawContext::get_depth() const
+{
+       return 0;
+}
+
+unsigned char *DrawContext::get_data()
+{
+       return 0;
+}
+
+void DrawContext::update()
+{ }
+
+} // namespace Graphics
+} // namespace Msp