![]() |
Radium Engine
1.5.0
|
Functions | |
Ra::Headless::OpenGLContext::OpenGLContext (const glbinding::Version &={ 4, 1 }, const std::array< int, 2 > &={ { 1, 1 } }) | |
virtual | Ra::Headless::OpenGLContext::~OpenGLContext ()=default |
destructor | |
virtual void | Ra::Headless::OpenGLContext::makeCurrent () const =0 |
make the context active | |
virtual void | Ra::Headless::OpenGLContext::doneCurrent () const =0 |
make the context inactive | |
virtual bool | Ra::Headless::OpenGLContext::isValid () const =0 |
Check for validity of the context. | |
virtual bool | Ra::Headless::OpenGLContext::isWindow () const |
Check if the context is associated to a window. | |
virtual std::string | Ra::Headless::OpenGLContext::getInfo () const |
Return a string identifying the openGL Context and its supported versions. | |
These methods allow to create and manipulate an openGLContext. Using this function, the openGL context created is an offscreen context with no exposed window.
|
inlineexplicit |
#include </home/runner/work/Radium-Engine/Radium-Engine/src/Radium-Engine/src/Headless/OpenGLContext/OpenGLContext.hpp>
Create an offscreen openGl context. The created context has the following properties
glVersion | (optional, default is 4.1) indicates the OpenGL version the context MUST be compatible with. If there is no compatible context, the application will stop |
size |
Definition at line 41 of file OpenGLContext.hpp.