]> git.cworth.org Git - apitrace/blobdiff - glws.hpp
Move tracers to wrappers subdirectory.
[apitrace] / glws.hpp
index adabe14dd8038a415e8430b9c8a68f5deb0f7337..9afebf4b878a4b639863bb08d8bf12927fbd0495 100644 (file)
--- a/glws.hpp
+++ b/glws.hpp
@@ -38,9 +38,11 @@ namespace glws {
 
 
 enum Profile {
-    PROFILE_COMPAT,
+    PROFILE_COMPAT = 0,
+    PROFILE_CORE,
     PROFILE_ES1,
     PROFILE_ES2,
+    PROFILE_MAX
 };
 
 
@@ -129,9 +131,11 @@ class Context
 {
 public:
     const Visual *visual;
+    Profile profile;
     
-    Context(const Visual *vis) :
-        visual(vis)
+    Context(const Visual *vis, Profile prof) :
+        visual(vis),
+        profile(prof)
     {}
 
     virtual ~Context() {}
@@ -145,7 +149,7 @@ void
 cleanup(void);
 
 Visual *
-createVisual(bool doubleBuffer = false);
+createVisual(bool doubleBuffer = false, Profile profile = PROFILE_COMPAT);
 
 Drawable *
 createDrawable(const Visual *visual, int width = 32, int height = 32);