summaryrefslogtreecommitdiff
path: root/glws.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'glws.hpp')
-rw-r--r--glws.hpp33
1 files changed, 15 insertions, 18 deletions
diff --git a/glws.hpp b/glws.hpp
index 0565420..12e53f3 100644
--- a/glws.hpp
+++ b/glws.hpp
@@ -92,29 +92,26 @@ public:
};
-class WindowSystem
-{
-public:
- virtual ~WindowSystem() {}
+void
+init(void);
- virtual Visual *
- createVisual(bool doubleBuffer = false) = 0;
-
- virtual Drawable *
- createDrawable(const Visual *visual, int width = 32, int height = 32) = 0;
+void
+cleanup(void);
- virtual Context *
- createContext(const Visual *visual, Context *shareContext = NULL) = 0;
-
- virtual bool
- makeCurrent(Drawable *drawable, Context *context) = 0;
+Visual *
+createVisual(bool doubleBuffer = false);
- virtual bool
- processEvents(void) = 0;
-};
+Drawable *
+createDrawable(const Visual *visual, int width = 32, int height = 32);
+
+Context *
+createContext(const Visual *visual, Context *shareContext = NULL);
+bool
+makeCurrent(Drawable *drawable, Context *context);
-WindowSystem *createNativeWindowSystem(void);
+bool
+processEvents(void);
} /* namespace glws */