draw  0.0.0
Public Member Functions | List of all members
draw::Context Class Referenceabstract

OpenGL rendering context base interface class. More...

#include <draw.h>

Public Member Functions

virtual ~Context ()=default
 
virtual void setCurrent ()=0
 set context as current More...
 

Detailed Description

OpenGL rendering context base interface class.

You should inherit from this interface class and implement Context::setCurrent() for your platform. It's recommended to move ownership of the context immediately to the renderer: makeRenderer(std::move(make_unique<ContextImpl>())).

Constructor & Destructor Documentation

virtual draw::Context::~Context ( )
virtualdefault

Member Function Documentation

virtual void draw::Context::setCurrent ( )
pure virtual

set context as current


The documentation for this class was generated from the following file: