Cumulia Illustrator Rendering Engine v1.0.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 ()
 
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.
 

Static Public Member Functions

static RenderContextcurrent ()
 Gets the current active rendering context.
 

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.

◆ 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.