2#ifdef HEADLESS_HAS_GLFW
3# include <Headless/OpenGLContext/OpenGLContext.hpp>
16class HEADLESS_API GlfwOpenGLContext :
public OpenGLContext
29 explicit GlfwOpenGLContext(
const glbinding::Version& glVersion = { 4, 1 },
32 ~GlfwOpenGLContext()
override;
33 void makeCurrent()
const override;
34 void doneCurrent()
const override;
35 bool isValid()
const override;
36 bool isWindow()
const override {
return true; }
40 void show( EventMode mode,
float delay )
override;
43 void renderLoop(
std::function<
void(
float )> render )
override;
46 bool processEvents()
override;
49 GLFWwindow* m_glfwContext {
nullptr };
hepler function to manage enum as underlying types in VariableSet