-
Notifications
You must be signed in to change notification settings - Fork 45
Existing context
Overv edited this page Jul 15, 2012
·
1 revision
OOGL is as modular as possible and it even allows you to use another library to create a window and OpenGL context. The process for this is described in this article.
If another library has a certain context creation option OOGL doesn't have yet, but would still like to use the OpenGL wrapper functions, you can tell OOGL to work with a pre-existent context.
After you've created and activated a compatible OpenGL context (3.2+ core), you can instantiate a Context
class to manage it by calling:
GL::Context gl = GL::Context::UseExistingContext();
After that, all wrapper functions can be used as usual. The class will still load its own set of extensions by calling LoadExtensions
in Extensions.hpp
, but other than that nothing is created or destroyed.