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