wsp::GameWindow Class Reference

Basic rendering unit. More...

#include <gamewindow.h>

List of all members.

Public Member Functions

 GameWindow ()
 Constructor.
virtual ~GameWindow ()
 Destructor. Does call StopVideo() automatically.
void InitVideo ()
void StopVideo ()
 Shuts the video subsystem down. It won't work if Video wasn't initialized before.
void SetBackground (GXColor bgcolor)
void Flush ()
 Finishes rendering.

Static Public Member Functions

static bool IsInitialized ()
static u32 GetWidth ()
static u32 GetHeight ()


Detailed Description

Basic rendering unit.

Member Function Documentation

void wsp::GameWindow::InitVideo (  ) 

Initializes the whole video subsystem. Should be the first command called with the library.

static bool wsp::GameWindow::IsInitialized (  )  [static]

Checks if the video subsystem is already initialized.

Returns:
true if initialized, false if not.

void wsp::GameWindow::SetBackground ( GXColor  bgcolor  ) 

Sets the background clear color

Parameters:
bgcolor is a GXColor containing r, g, b and a.

static u32 wsp::GameWindow::GetWidth (  )  [static]

Gets the width of the screen.

Returns:
The width of the screen if intialized. 0 if the video subsystem is not initialized.

static u32 wsp::GameWindow::GetHeight (  )  [static]

Gets the height of the screen.

Returns:
The height of the screen if intialized. 0 if the video subsystem is not initialized.


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

Generated on Sun Jun 29 14:29:26 2008 for libwiisprite by  doxygen 1.5.5