Mondschein Engine
0.3.0
|
This interface specifies a general rendering context. More...
#include <context.h>
Public Member Functions | |
virtual void | set_context_attribs (const context_attribs_t &_c) |
Set the context properties. More... | |
virtual context_attribs_t | get_context_attribs () const |
Get the context properties. More... | |
virtual void | init ()=0 |
Initialize the context. More... | |
virtual void | make_current ()=0 |
Make the context current. More... | |
This interface specifies a general rendering context.
The Context interface specifies a general Mondschein Engine rendering context. If a GUI toolkit has separate rendering visual and context support the context part derives from this interface to implement multi-context rendering.
|
virtual |
Get the context properties.
Definition at line 58 of file context.cpp.
|
pure virtual |
Initialize the context.
NOTE: In order to function a rendring context must always be initialized.
Implemented in mondschein::display::SDL_Visual, mondschein::display::wx_Visual, mondschein::display::GLUT_Visual, mondschein::display::SFML_Visual, mondschein::display::GLFW_Visual, and mondschein::renderer::Qt4_Context.
|
pure virtual |
Make the context current.
This function should not be called explicitely, since it is implicitely called by mondschein::Engine::make_current(mondschein::display::Visual_p _v,mondschein::renderer::Context_p _c).
Implemented in mondschein::display::SDL_Visual.
|
virtual |
Set the context properties.
_c | the context properties |
Definition at line 52 of file context.cpp.