enum Profile {
- PROFILE_COMPAT,
+ PROFILE_COMPAT = 0,
+ PROFILE_CORE,
PROFILE_ES1,
PROFILE_ES2,
+ PROFILE_MAX
};
{
public:
const Visual *visual;
+ Profile profile;
- Context(const Visual *vis) :
- visual(vis)
+ Context(const Visual *vis, Profile prof) :
+ visual(vis),
+ profile(prof)
{}
virtual ~Context() {}
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);