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

CVideoSystem Class Reference

#include <cvideo.h>

Inheritance diagram for CVideoSystem:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual CScreenget_screen ()=0

Protected Member Functions

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

Friends

class CColor
class CSurface
class CSurfaceImpl

Detailed Description

CVideoSystem is an abstract interface to a video subsystem. It also serves as an abstract factory for implementation-specific objects, such as bitmap surfaces. This is a singleton class managed by a CSingletonManager.

Definition at line 142 of file cvideo.h.


Member Function Documentation

virtual CScreen& CVideoSystem::get_screen  )  [pure 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.

Implemented in SDLDriver::CVideoSystemSDL.

virtual uint32 CVideoSystem::make_color uint8  r,
uint8  g,
uint8  b
[protected, pure 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.

Implemented in SDLDriver::CVideoSystemSDL.

virtual CSurfaceImpl* CVideoSystem::make_csurface_impl const char *  filename  )  [protected, pure 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.

Implemented in SDLDriver::CVideoSystemSDL.

virtual CSurfaceImpl* CVideoSystem::make_csurface_impl int  w,
int  h
[protected, pure virtual]
 

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

Implemented in SDLDriver::CVideoSystemSDL.


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