Loading [MathJax]/jax/input/TeX/config.js
Radium Engine  1.5.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
EglOpenGLContext.hpp
1 #pragma once
2 #ifdef HEADLESS_HAS_EGL
3 # include <Headless/OpenGLContext/OpenGLContext.hpp>
4 
5 namespace Ra {
6 namespace Headless {
7 
14 class HEADLESS_API EglOpenGLContext : public OpenGLContext
15 {
16  public:
17  explicit EglOpenGLContext( const glbinding::Version& glVersion = { 4, 1 },
18  const std::array<int, 2>& size = { { 1, 1 } } );
19  ~EglOpenGLContext() override;
20 
21  void makeCurrent() const override;
22  void doneCurrent() const override;
23  bool isValid() const override;
24 
25  [[nodiscard]] std::string getInfo() const override;
26 
27  private:
28  struct ContextEGL;
29  std::unique_ptr<ContextEGL> m_eglContext;
30 };
31 
32 } // namespace Headless
33 } // namespace Ra
34 #endif
Definition: Cage.cpp:3