Cumulia Illustrator Rendering Engine v2.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::RenderContext Class Reference

The RenderContext Class provides a set of interfaces for managing the lifycycle and state of an OpenGL rendering context. More...

#include <rendercontext.h>

Public Member Functions

 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.
 

Static Public Member Functions

static RenderContextcurrent ()
 Gets the current active rendering context.
 

Public Attributes

RealPtr devicePixelRatio
 

Detailed Description

The RenderContext Class provides a set of interfaces for managing the lifycycle and state of an OpenGL rendering context.

Constructor & Destructor Documentation

◆ RenderContext()

cil::RenderContext::RenderContext ( )

Constructs a rendering context object.

◆ ~RenderContext()

virtual cil::RenderContext::~RenderContext ( )
virtual

Member Function Documentation

◆ current()

static RenderContext * cil::RenderContext::current ( )
static

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.

Member Data Documentation

◆ devicePixelRatio

RealPtr cil::RenderContext::devicePixelRatio