Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

SDLDriver::CVideoSystemSDL Class Reference

Inheritance diagram for SDLDriver::CVideoSystemSDL:

Inheritance graph
[legend]
Collaboration diagram for SDLDriver::CVideoSystemSDL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual CScreenget_screen ()

Protected Member Functions

virtual CSurfaceImplmake_csurface_impl (int w, int h)
virtual CSurfaceImplmake_csurface_impl (const char *filename)
virtual uint32 make_color (uint8 r, uint8 g, uint8 b)

Detailed Description

The CVideoSystem singleton implementation. Note this singleton is managed by the CSingletonManager parameterized class, so that's where all the static methods are.

Definition at line 195 of file sdl_cvideo.cpp.


Member Function Documentation

virtual CScreen& SDLDriver::CVideoSystemSDL::get_screen  )  [inline, virtual]
 

Return a CScreen surface that represents the video screen of the surface.

See the CScreen object for more information on the nature of the screen as a singleton.

Implements CVideoSystem.

Definition at line 229 of file sdl_cvideo.cpp.

virtual uint32 SDLDriver::CVideoSystemSDL::make_color uint8  r,
uint8  g,
uint8  b
[inline, protected, virtual]
 

Return the 32-bit integer representing the given color with (red, green, blue). It should be in the video system's architecture-dependent pixel format.

Implements CVideoSystem.

Definition at line 218 of file sdl_cvideo.cpp.

References uint32.

virtual CSurfaceImpl* SDLDriver::CVideoSystemSDL::make_csurface_impl const char *  filename  )  [inline, protected, virtual]
 

Return a bitmap surface that represents the given image file name (usually a Windows BMP file). Note that the pixel format used will be the image file's, NOT the screen's.

Implements CVideoSystem.

Definition at line 215 of file sdl_cvideo.cpp.

virtual CSurfaceImpl* SDLDriver::CVideoSystemSDL::make_csurface_impl int  w,
int  h
[inline, protected, virtual]
 

Create a CSurfaceImpl with the given width and height. The screen's pixel format is used.

Implements CVideoSystem.

Definition at line 212 of file sdl_cvideo.cpp.


The documentation for this class was generated from the following file:
Generated on Wed Aug 27 11:59:31 2003 for GFW by doxygen 1.3.3