The RenderContext Class provides a set of interfaces for managing the lifycycle and state of an OpenGL rendering context.
More...
#include <rendercontext.h>
|
| | RenderContext () |
| | Constructs a rendering context object.
|
| |
| virtual | ~RenderContext () |
| |
| void | initialize () |
| | Initializes the rendering context.
|
| |
| void | finalize () |
| | Finalize the rendering context.
|
| |
| bool | isValid () const |
| | Check if the rendering context is valid.
|
| |
| void | makeCurrent () |
| | Make the current context active.
|
| |
| bool | isCurrent () const |
| | Check if the current context is active.
|
| |
The RenderContext Class provides a set of interfaces for managing the lifycycle and state of an OpenGL rendering context.
◆ RenderContext()
| cil::RenderContext::RenderContext |
( |
| ) |
|
Constructs a rendering context object.
◆ ~RenderContext()
| virtual cil::RenderContext::~RenderContext |
( |
| ) |
|
|
virtual |
◆ current()
Gets the current active rendering context.
- Returns
- Returns pointer to the current active rendering context.
◆ finalize()
| void cil::RenderContext::finalize |
( |
| ) |
|
Finalize the rendering context.
◆ initialize()
| void cil::RenderContext::initialize |
( |
| ) |
|
Initializes the rendering context.
◆ isCurrent()
| bool cil::RenderContext::isCurrent |
( |
| ) |
const |
Check if the current context is active.
- Returns
- Returns true if the current context is active, otherwise false.
◆ isValid()
| bool cil::RenderContext::isValid |
( |
| ) |
const |
Check if the rendering context is valid.
- Returns
- Returns true if the rendering context is valid, otherwise false.
◆ makeCurrent()
| void cil::RenderContext::makeCurrent |
( |
| ) |
|
Make the current context active.