VVISF & VVGL
|
Creating a GLContext
If you want to work with OpenGL then you need an "OpenGL context", because a context is the primary interface for accessing GPU hardware using OpenGL. Every platform has its own native SDK for working with OpenGL, and they all have subtle differences- VVGL::GLContext/GLContextRef is an attempt to create a cross-platform class that presents the same interface across all platforms, but the exact call to create a GLContext is going to change slightly depending on which platform you're compiling VVGL against. The same holds true if you're compiling VVGL to use with another cross-platform GL solution, like GLFW or Qt.
Creating a new GLContext from an existing GLContext (all SDKs)
Creating a new GLContext- simplest approach, but least control over the kind of context that gets created (all SDKs)
Creating a GLContext with the mac SDK:
Creating a GLContext with the iOS SDK:
Creating a GLContext with the GLFW SDK:
Creating a GLContext with the Qt SDK: