]> git.cworth.org Git - apitrace/blobdiff - glws.hpp
glws: Add support for profiles
[apitrace] / glws.hpp
index d6c2003e0c90ae873c0743057725214152017e3b..adabe14dd8038a415e8430b9c8a68f5deb0f7337 100644 (file)
--- a/glws.hpp
+++ b/glws.hpp
 namespace glws {
 
 
+enum Profile {
+    PROFILE_COMPAT,
+    PROFILE_ES1,
+    PROFILE_ES2,
+};
+
+
 extern bool debug;
 
 
@@ -144,7 +151,7 @@ Drawable *
 createDrawable(const Visual *visual, int width = 32, int height = 32);
 
 Context *
-createContext(const Visual *visual, Context *shareContext = 0);
+createContext(const Visual *visual, Context *shareContext = 0, Profile profile = PROFILE_COMPAT);
 
 bool
 makeCurrent(Drawable *drawable, Context *context);