GLFW in a Nutshell
  • About GLFW
  • Preparation
    • Project Setup
    • Library Setup
  • Windows
    • Window Basics
    • Properties
    • Actions
    • Creation Hints
    • Attributes
    • (Windowed) Fullscreen
    • Callbacks
    • Icons
  • Contexts
    • Context Basics
    • OpenGL (ES)
    • Vulkan
  • Input
    • Keyboard
    • Mouse
    • Joystick/Gamepad
    • Other
  • Monitors
    • Monitor Basics
    • Video Modes
    • Multiple Monitors
  • Appendix
    • Credits
    • Licensing
    • Glossary
Powered by GitBook
On this page
  • Context Creation
  • Extensions

Was this helpful?

  1. Contexts

OpenGL (ES)

Creating GLFW contexts for OpenGL and OpenGL ES

PreviousContext BasicsNextVulkan

Last updated 5 years ago

Was this helpful?

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 has to bee created. The current context can be retrieved with glfwGetCurrentContext, which returns the window containing the . The first step of working with OpenGL would now be to create the OpenGL capabilities by calling glCreateCapabilities.

Extensions

TODO (see for now)

shared context
context object
here