+struct Context {
+ Context(glws::Context* context)
+ : wsContext(context),
+ drawable(0),
+ activeProgram(0),
+ used(false)
+ {
+ }
+
+ ~Context();
+
+ glws::Context* wsContext;
+
+ // Bound drawable
+ glws::Drawable *drawable;
+
+ GLuint activeProgram;
+ bool used;
+
+ // Context must be current
+ inline bool
+ hasExtension(const char *extension) const {
+ return wsContext->hasExtension(extension);
+ }
+};