Loading [MathJax]/extensions/TeX/AMSsymbols.js
Radium Engine  1.5.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
OpenGL context management

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.
 

Detailed Description

These methods allow to create and manipulate an openGLContext. Using this function, the openGL context created is an offscreen context with no exposed window.

Function Documentation

◆ OpenGLContext()

Ra::Headless::OpenGLContext::OpenGLContext ( const glbinding::Version &  = { 4, 1 },
const std::array< int, 2 > &  = { { 1, 1 } } 
)
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

  • OpenGL version requested : (default >= 4.1)
  • OpenGL context profile : Core Profile The created context is associated with a hidden window that can be shown later.
    Parameters
    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.