2 #ifdef HEADLESS_HAS_EGL
3 # include <Headless/OpenGLContext/OpenGLContext.hpp>
14 class HEADLESS_API EglOpenGLContext :
public OpenGLContext
17 explicit EglOpenGLContext(
const glbinding::Version& glVersion = { 4, 1 },
18 const std::array<int, 2>& size = { { 1, 1 } } );
19 ~EglOpenGLContext()
override;
21 void makeCurrent()
const override;
22 void doneCurrent()
const override;
23 bool isValid()
const override;
25 [[nodiscard]] std::string getInfo()
const override;
29 std::unique_ptr<ContextEGL> m_eglContext;