SPACE::Graphic::cGraphicCore Class Reference

Init the main graphic system. More...

#include <cGraphicCore.hpp>

Inheritance diagram for SPACE::Graphic::cGraphicCore:
SPACE::Core::TSingleton< cGraphicCore >

List of all members.

Public Member Functions

bool Init (const int _ScreenWidth, const int _ScreenHeight, const bool _bFullScreen=false, const int _ColorDepth=32, const bool _bDoubleBuffer=true, const char *_ScreenTitle="Build with SPACE Engine", const char *_IconPath=0, const bool _bResizeable=true, const bool _bShowBorder=true)
SDL_Surface * GetScreen ()
bool SetCursorImage (cSprite *_Image)
void RenderAll (int _R=0, int _G=0, int _B=0)
cCameraGetCamera ()
bool RenderCursor ()
bool FlipBuffer ()

Detailed Description

Init the main graphic system.

This class is the main API to acess to the graphic-core of the SPACE Engine


Member Function Documentation

cCamera* SPACE::Graphic::cGraphicCore::GetCamera (  )  [inline]
Returns:
The Camera Instance (Ptr)
SDL_Surface* SPACE::Graphic::cGraphicCore::GetScreen (  )  [inline]
Returns:
Returns the Screen Buffer
bool cGraphicCore::Init ( const int  _ScreenWidth,
const int  _ScreenHeight,
const bool  _bFullScreen = false,
const int  _ColorDepth = 32,
const bool  _bDoubleBuffer = true,
const char *  _ScreenTitle = "Build with SPACE Engine",
const char *  _IconPath = 0,
const bool  _bResizeable = true,
const bool  _bShowBorder = true 
)

This function initialize SDL and creates a Window.

Parameters:
_ScreenWidth The width of the window (int)
_ScreenHeight The height of the window (int)
_bFullScreen defines if this window should be full screen (bool) [= false]
_ColorDepth defines the color depth (int) [= 32]
_bDoubleBuffer defines if the window should use double buffer (bool) [= true]
_ScreenTitle defines the screen title (char[]*) [= "Build with SPACE Engine"]
_IconPath defines the icon path (char[]*) [= 0]
_bResizeable defines if the window is resizeable (bool) [= true]
_bShowBorder defines if the window has a border (bool) [= true]
Returns:
true => everything was ok
false => something failed
void SPACE::Graphic::cGraphicCore::RenderAll ( int  _R = 0,
int  _G = 0,
int  _B = 0 
)

Renders every Sprite registered (Renders only visible Sprites)

bool cGraphicCore::SetCursorImage ( cSprite _Image  ) 

Use an Image insteat of an Cursor.

Parameters:
_Image A pointer to the Imgae.
Returns:
true => everything was fine
false=> something was wronge

The documentation for this class was generated from the following files:
Generated on Wed Apr 7 17:20:25 2010 for SPACE Engine by  doxygen 1.6.3