Radium Engine
1.5.20
Loading...
Searching...
No Matches
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
std::array
std::string
Ra
hepler function to manage enum as underlying types in VariableSet
Definition
Cage.cpp:3
std::unique_ptr
src
Headless
OpenGLContext
EglOpenGLContext.hpp
Generated by
1.12.0