{
public:
const Visual *visual;
+ Profile profile;
- Context(const Visual *vis) :
- visual(vis)
+ Context(const Visual *vis, Profile prof) :
+ visual(vis),
+ profile(prof)
{}
virtual ~Context() {}
public:
EGLContext context;
- EglContext(const Visual *vis, EGLContext ctx) :
- Context(vis),
+ EglContext(const Visual *vis, Profile prof, EGLContext ctx) :
+ Context(vis, prof),
context(ctx)
{}
eglBindAPI(api);
- return new EglContext(visual, context);
+ return new EglContext(visual, profile, context);
}
bool
public:
GLXContext context;
- GlxContext(const Visual *vis, GLXContext ctx) :
- Context(vis),
+ GlxContext(const Visual *vis, Profile prof, GLXContext ctx) :
+ Context(vis, prof),
context(ctx)
{}
context = glXCreateContext(display, visual->visinfo, share_context, True);
}
- return new GlxContext(visual, context);
+ return new GlxContext(visual, profile, context);
}
bool
HGLRC hglrc;
WglContext *shareContext;
- WglContext(const Visual *vis, WglContext *share) :
- Context(vis),
+ WglContext(const Visual *vis, Profile prof, WglContext *share) :
+ Context(vis, prof),
hglrc(0),
shareContext(share)
{}
return NULL;
}
- return new WglContext(visual, dynamic_cast<WglContext *>(shareContext));
+ return new WglContext(visual, profile, dynamic_cast<WglContext *>(shareContext));
}
bool