Mondschein Engine  0.3.0
Static Public Member Functions | List of all members
mondschein::SDL_Factory Class Reference

This class provides creation functions for Mondschein SDL classes. More...

#include <sdl_types.h>

Static Public Member Functions

static display::SDL_Visual_p create_sdl_visual ()
 Create an SDL visual. More...
 
static display::SDL_Visual_p create_sdl_visual (uint32 _w, uint32 _h, uint32 _bpp, bool _fs, Eigen::Vector4i _cd, Eigen::Vector4i _ad, int32 _dbs, int32 _sbs, bool _db, bool _init=false)
 Create an SDL visual. More...
 
static display::SDL_Visual_p create_sdl_visual (display::SDL_Visual_c _v)
 Create an SDL visual. More...
 

Detailed Description

This class provides creation functions for Mondschein SDL classes.

The SDL_Factory class is a convenience class that provides creation functions to ease the use of Mondschein SDL classes. Supported classes are:
SDL_Visual

Definition at line 41 of file sdl_types.h.

Member Function Documentation

display::SDL_Visual_p SDL_Factory::create_sdl_visual ( )
static

Create an SDL visual.

Returns
a standard SDL visual

This function createa a standard SDL visual according to the class defaults.

Definition at line 36 of file mondschein_sdl.cpp.

display::SDL_Visual_p SDL_Factory::create_sdl_visual ( uint32  _w,
uint32  _h,
uint32  _bpp,
bool  _fs,
Eigen::Vector4i  _cd,
Eigen::Vector4i  _ad,
int32  _dbs,
int32  _sbs,
bool  _db,
bool  _init = false 
)
static

Create an SDL visual.

Parameters
_wthe visual width
_hthe visual height
_bppthe visual depth
_fsthe visual fullscreen mode
_cdthe context colour buffer depth
_acthe context accumulation buffer depth
_dbsthe context depth buffer size
_sbsthe context stencil buffer size
_dbthe context doublebuffer mode (default: auto-detect on initialization)
_rthe renderer
_initinitializer option (true for automatic initialization, false otherwise, default: false)
Returns
an SDL visual object

This function creates an SDL visual according to the function parameters.

Definition at line 44 of file mondschein_sdl.cpp.

static display::SDL_Visual_p mondschein::SDL_Factory::create_sdl_visual ( display::SDL_Visual_c  _v)
static

Create an SDL visual.

Parameters
_vthe SDL visual to copy
Returns
a copy of _v

This function creates an SDL visual object which is an exact copy of _v.


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