OpenGL (ES)

Creating GLFW contexts for OpenGL and OpenGL ES

Context Creation

After window creation, the created OpenGL context object needs to be made the current context by calling glfwMakeContextCurrent(window). This binds the context object to the current thread. In situations where multithreading is required, a shared contextarrow-up-right has to bee created. The current context can be retrieved with glfwGetCurrentContext, which returns the window containing the context objectarrow-up-right. The first step of working with OpenGL would now be to create the OpenGL capabilities by calling glCreateCapabilities.

Extensions

TODO (see herearrow-up-right for now)

Last updated

Was this helpful?