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 () |
| |
| virtual void | initialize () |
| | Initializes the rendering context.
|
| |
| virtual void | finalize () |
| | Finalize the rendering context.
|
| |
| virtual bool | isValid () const |
| | Check if the rendering context is valid.
|
| |
| virtual void | makeCurrent () |
| | Make the current context active.
|
| |
| virtual bool | isCurrent () const |
| | Check if the current context is active.
|
| |
| virtual unsigned int | defaultFramebufferObject () |
| | the value of device pixel ratio.
|
| |
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.
◆ defaultFramebufferObject()
| virtual unsigned int cil::RenderContext::defaultFramebufferObject |
( |
| ) |
|
|
virtual |
the value of device pixel ratio.
◆ finalize()
| virtual void cil::RenderContext::finalize |
( |
| ) |
|
|
virtual |
Finalize the rendering context.
◆ initialize()
| virtual void cil::RenderContext::initialize |
( |
| ) |
|
|
virtual |
Initializes the rendering context.
◆ isCurrent()
| virtual bool cil::RenderContext::isCurrent |
( |
| ) |
const |
|
virtual |
Check if the current context is active.
- Returns
- Returns true if the current context is active, otherwise false.
◆ isValid()
| virtual bool cil::RenderContext::isValid |
( |
| ) |
const |
|
virtual |
Check if the rendering context is valid.
- Returns
- Returns true if the rendering context is valid, otherwise false.
◆ makeCurrent()
| virtual void cil::RenderContext::makeCurrent |
( |
| ) |
|
|
virtual |
Make the current context active.
◆ devicePixelRatio
| RealPtr cil::RenderContext::devicePixelRatio |