The RenderContext Class provides a set of interfaces for managing the lifycycle and state of an OpenG...
Definition rendercontext.h:28
RenderContext()
Constructs a rendering context object.
virtual bool isCurrent() const
Check if the current context is active.
virtual bool isValid() const
Check if the rendering context is valid.
virtual void makeCurrent()
Make the current context active.
std::shared_ptr< Real > devicePixelRatio
the value of device pixel ratio.
Definition rendercontext.h:49
static RenderContext * current()
Gets the current active rendering context.
virtual void initialize()
Initializes the rendering context.
virtual void finalize()
Finalize the rendering context.