X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glws.hpp;h=9afebf4b878a4b639863bb08d8bf12927fbd0495;hb=5b6fb75c9e2f1ad31bc3c3fb354003efe0352050;hp=adabe14dd8038a415e8430b9c8a68f5deb0f7337;hpb=d56c5318f7ba4855ee79b0deaf4549212f3e4780;p=apitrace diff --git a/glws.hpp b/glws.hpp index adabe14..9afebf4 100644 --- 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);