Radium Engine
1.7.0
Loading...
Searching...
No Matches
EglOpenGLContext.hpp
1
#pragma once
2
#ifdef HEADLESS_HAS_EGL
3
# include <Headless/OpenGLContext/OpenGLContext.hpp>
4
# include <Headless/RaHeadless.hpp>
5
# include <memory>
6
# include <string>
7
8
namespace
glbinding {
9
class
Version;
10
}
// namespace glbinding
11
12
namespace
Ra
{
13
namespace
Headless {
14
21
class
HEADLESS_API EglOpenGLContext :
public
OpenGLContext
22
{
23
public
:
24
explicit
EglOpenGLContext(
const
glbinding::Version& glVersion = { 4, 1 },
25
const
std::array<int, 2>
& size = { { 1, 1 } } );
26
~EglOpenGLContext()
override
;
27
28
void
makeCurrent()
const override
;
29
void
doneCurrent()
const override
;
30
bool
isValid()
const override
;
31
32
[[nodiscard]]
std::string
getInfo()
const override
;
33
34
private
:
35
struct
ContextEGL;
36
std::unique_ptr<ContextEGL>
m_eglContext;
37
};
38
39
}
// namespace Headless
40
}
// namespace Ra
41
#endif
std::array
std::string
Ra
hepler function to manage enum as underlying types in VariableSet
Definition
Cage.cpp:4
std::unique_ptr
src
Headless
OpenGLContext
EglOpenGLContext.hpp
Generated by
1.12.0