CSDLVideo Class Reference

#include <CSDLVideo.h>

List of all members.

Public Member Functions

 CSDLVideo (void)
 ~CSDLVideo (void)
void SetWindowHandle (HWND hWnd)
bool Create (int Width, int Height, int Depth, bool FullScreen)
void Destroy (void)
bool SetTransparentColor (int Red, int Green, int Blue)
bool LoadSprites (int SpriteTableWidth, int SpriteTableHeight, int SpriteWidth, int SpriteHeight, bool Transparent, HBITMAP hBitmap)
void FreeSprites (void)
void OnWindowMove (void)
void OnPaint (void)
void Clear (void)
void UpdateAll (void)
void UpdateScreen (void)
void SetOrigin (int OriginX, int OriginY)
void SetNewPrimary (SDL_Surface *pSurface)
void DrawSprite (int PositionX, int PositionY, RECT *pZone, RECT *pClip, int SpriteTable, int Sprite, int SpriteLayer, int PriorityInLayer)
void DrawDebugRectangle (int PositionX, int PositionY, int w, int h, Uint8 r, Uint8 g, Uint8 b, int SpriteLayer, int PriorityInLayer)
void RemoveAllDebugRectangles ()
bool IsModeSet (int Width, int Height, int Depth, bool FullScreen)
bool IsModeAvailable (int Width, int Height, int Depth)

Private Member Functions

WORD GetNumberOfBits (DWORD dwMask)

Private Attributes

HWND m_hWnd
 Window handle.
SDL_Rect m_rcScreen
 Window rect in screen coordinates.
SDL_Rect m_rcViewport
 Window rect in client coordinates.
int m_Width
 Display width when fullscreen.
int m_Height
 Display height when fullscreen.
int m_Depth
 Display depth when fullscreen.
bool m_FullScreen
 Is it fullscreen?
SDL_Surface * m_pBackBuffer
 Backbuffer surface.
SDL_Surface * m_pPrimary
 Primary surface.
vector< SSurfacem_Surfaces
 Surfaces.
DWORD m_ColorKey
 Color key for transparent surfaces.
priority_queue< SDrawingRequestm_DrawingRequests
 Automatically sorted drawing requests queue.
vector< SDebugDrawingRequestm_DebugDrawingRequests
 vector of drawing requests for debugging purposes
vector< vector< SSprite > > m_SpriteTables
 Available sprite tables.
int m_OriginX
 Origin position where to draw from.
int m_OriginY
vector< SDisplayModem_AvailableDisplayModes


Constructor & Destructor Documentation

CSDLVideo::CSDLVideo ( void   ) 

CSDLVideo::~CSDLVideo ( void   ) 


Member Function Documentation

WORD CSDLVideo::GetNumberOfBits ( DWORD  dwMask  )  [private]

void CSDLVideo::SetWindowHandle ( HWND  hWnd  )  [inline]

Here is the caller graph for this function:

bool CSDLVideo::Create ( int  Width,
int  Height,
int  Depth,
bool  FullScreen 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CSDLVideo::Destroy ( void   ) 

Here is the call graph for this function:

Here is the caller graph for this function:

bool CSDLVideo::SetTransparentColor ( int  Red,
int  Green,
int  Blue 
)

bool CSDLVideo::LoadSprites ( int  SpriteTableWidth,
int  SpriteTableHeight,
int  SpriteWidth,
int  SpriteHeight,
bool  Transparent,
HBITMAP  hBitmap 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void CSDLVideo::FreeSprites ( void   ) 

Here is the caller graph for this function:

void CSDLVideo::OnWindowMove ( void   ) 

Here is the caller graph for this function:

void CSDLVideo::OnPaint ( void   )  [inline]

Here is the call graph for this function:

void CSDLVideo::Clear ( void   ) 

Here is the caller graph for this function:

void CSDLVideo::UpdateAll ( void   ) 

Here is the call graph for this function:

Here is the caller graph for this function:

void CSDLVideo::UpdateScreen ( void   ) 

Here is the caller graph for this function:

void CSDLVideo::SetOrigin ( int  OriginX,
int  OriginY 
) [inline]

Here is the caller graph for this function:

void CSDLVideo::SetNewPrimary ( SDL_Surface *  pSurface  )  [inline]

Here is the caller graph for this function:

void CSDLVideo::DrawSprite ( int  PositionX,
int  PositionY,
RECT pZone,
RECT pClip,
int  SpriteTable,
int  Sprite,
int  SpriteLayer,
int  PriorityInLayer 
)

Here is the caller graph for this function:

void CSDLVideo::DrawDebugRectangle ( int  PositionX,
int  PositionY,
int  w,
int  h,
Uint8  r,
Uint8  g,
Uint8  b,
int  SpriteLayer,
int  PriorityInLayer 
)

Here is the caller graph for this function:

void CSDLVideo::RemoveAllDebugRectangles ( void   ) 

Here is the caller graph for this function:

bool CSDLVideo::IsModeSet ( int  Width,
int  Height,
int  Depth,
bool  FullScreen 
) [inline]

Here is the caller graph for this function:

bool CSDLVideo::IsModeAvailable ( int  Width,
int  Height,
int  Depth 
)

Here is the caller graph for this function:


Member Data Documentation

HWND CSDLVideo::m_hWnd [private]

Window handle.

SDL_Rect CSDLVideo::m_rcScreen [private]

Window rect in screen coordinates.

SDL_Rect CSDLVideo::m_rcViewport [private]

Window rect in client coordinates.

int CSDLVideo::m_Width [private]

Display width when fullscreen.

int CSDLVideo::m_Height [private]

Display height when fullscreen.

int CSDLVideo::m_Depth [private]

Display depth when fullscreen.

bool CSDLVideo::m_FullScreen [private]

Is it fullscreen?

SDL_Surface* CSDLVideo::m_pBackBuffer [private]

Backbuffer surface.

SDL_Surface* CSDLVideo::m_pPrimary [private]

Primary surface.

vector<SSurface> CSDLVideo::m_Surfaces [private]

Surfaces.

Color key for transparent surfaces.

priority_queue<SDrawingRequest> CSDLVideo::m_DrawingRequests [private]

Automatically sorted drawing requests queue.

vector of drawing requests for debugging purposes

vector<vector<SSprite> > CSDLVideo::m_SpriteTables [private]

Available sprite tables.

int CSDLVideo::m_OriginX [private]

Origin position where to draw from.

int CSDLVideo::m_OriginY [private]


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

Generated on Sat Oct 18 12:26:48 2008 for Bombermaaan by  doxygen 1.5.5
Visit the Bombermaaan project page
SourceForge.net Logo