Mondschein Engine  0.3.0
Public Member Functions | List of all members
mondschein::renderer::Context Class Referenceabstract

This interface specifies a general rendering context. More...

#include <context.h>

Inheritance diagram for mondschein::renderer::Context:
mondschein::display::GLFW_Visual mondschein::display::GLUT_Visual mondschein::display::SDL_Visual mondschein::display::SFML_Visual mondschein::display::wx_Visual mondschein::renderer::Qt4_Context

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

Detailed Description

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.

Definition at line 38 of file context.h.

Member Function Documentation

context_attribs_t Context::get_context_attribs ( ) const
virtual

Get the context properties.

Returns
the context properties of *this

Definition at line 58 of file context.cpp.

virtual void mondschein::renderer::Context::init ( )
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.

virtual void mondschein::renderer::Context::make_current ( )
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.

void Context::set_context_attribs ( const context_attribs_t _c)
virtual

Set the context properties.

Parameters
_cthe context properties

Definition at line 52 of file context.cpp.


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