Mondschein Engine  0.3.0
Public Member Functions | List of all members
mondschein::display::SDL_Visual Class Reference

This class implements the Visual interface based on SDL 1.2. More...

#include <visual.h>

Inheritance diagram for mondschein::display::SDL_Visual:
mondschein::display::Visual mondschein::renderer::Context

Public Member Functions

virtual void init ()
 Initialize the context. More...
 
virtual void update ()
 Update the rendering visual. More...
 
virtual void make_current ()
 Make the context current. More...
 
virtual void draw ()
 Draw the contents of the framebuffer.
 
- Public Member Functions inherited from mondschein::display::Visual
virtual void set_visual_attribs (const visual_attribs_t &_dsp)
 Set the display properties. More...
 
virtual visual_attribs_t get_visual_attribs () const
 Get the display properties. More...
 
- Public Member Functions inherited from mondschein::renderer::Context
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...
 

Detailed Description

This class implements the Visual interface based on SDL 1.2.

Definition at line 38 of file visual.h.

Member Function Documentation

void SDL_Visual::init ( )
virtual

Initialize the context.

NOTE: In order to function a rendring context must always be initialized.

Implements mondschein::renderer::Context.

Definition at line 44 of file visual.cpp.

void SDL_Visual::make_current ( )
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).

Implements mondschein::renderer::Context.

Definition at line 117 of file visual.cpp.

void SDL_Visual::update ( )
virtual

Update the rendering visual.

NOTE: This function must be called for any changes to take effect.

Implements mondschein::display::Visual.

Definition at line 100 of file visual.cpp.


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