OpenVideo Documentation

   Main Page       Modules       Class Hierarchy       Alphabetical List       Compound List       File List       Compound Members       Related Pages   

PHAL Namespace Reference


Classes

class  Game
class  Config
struct  IGame
class  GameBase

Functions

void Clear (Surface *surface, uint16_t color)
bool DrawChar (Surface *surface, int x, int y, char character, uint16_t color)
void DrawText (Surface *surface, int x, int y, const char *text, uint16_t color)

Variables

static const uint8_t VGAFONT []
static const int CHAR_WIDTH = 8
static const int CHAR_HEIGHT = 16
static const int CHAR_SIZE = 16
const uint16_t COLOR_BLACK = 0x0000
const uint16_t COLOR_DARKGRAY = 0x4208
const uint16_t COLOR_GRAY = 0x8410
const uint16_t COLOR_LIGHTGRAY = 0xC618
const uint16_t COLOR_WHITE = 0xFFFF
const uint16_t COLOR_RED = 0x1F << 11
const uint16_t COLOR_GREEN = 0x3F << 5
const uint16_t COLOR_BLUE = 0x1F
const uint16_t COLOR_YELLOW = COLOR_RED | COLOR_GREEN
const uint16_t COLOR_PINK = COLOR_RED | COLOR_BLUE
const uint16_t COLOR_CYAN = COLOR_GREEN | COLOR_BLUE


Function Documentation

void PHAL::Clear Surface *  surface,
uint16_t  color
 

Definition at line 37 of file utility.cpp.

Referenced by TestWinCE::OnGameLoop().

bool PHAL::DrawChar Surface *  surface,
int  x,
int  y,
char  character,
uint16_t  color = COLOR_WHITE
 

Definition at line 51 of file utility.cpp.

References CHAR_HEIGHT, CHAR_SIZE, VGAFONT, x02, x10, and x80.

Referenced by DrawText().

void PHAL::DrawText Surface *  surface,
int  x,
int  y,
const char *  text,
uint16_t  color = COLOR_WHITE
 

Definition at line 79 of file utility.cpp.

References CHAR_WIDTH, and DrawChar().

Referenced by TestWinCE::OnGameLoop().


Variable Documentation

const int PHAL::CHAR_HEIGHT = 16 [static]
 

Definition at line 26 of file utility.cpp.

Referenced by DrawChar().

const int PHAL::CHAR_SIZE = 16 [static]
 

Definition at line 27 of file utility.cpp.

Referenced by DrawChar().

const int PHAL::CHAR_WIDTH = 8 [static]
 

Definition at line 25 of file utility.cpp.

Referenced by DrawText().

const uint16_t PHAL::COLOR_BLACK = 0x0000
 

Definition at line 26 of file utility.h.

Referenced by TestWinCE::OnGameLoop().

const uint16_t PHAL::COLOR_BLUE = 0x1F
 

Definition at line 34 of file utility.h.

const uint16_t PHAL::COLOR_CYAN = COLOR_GREEN | COLOR_BLUE
 

Definition at line 38 of file utility.h.

const uint16_t PHAL::COLOR_DARKGRAY = 0x4208
 

Definition at line 27 of file utility.h.

const uint16_t PHAL::COLOR_GRAY = 0x8410
 

Definition at line 28 of file utility.h.

const uint16_t PHAL::COLOR_GREEN = 0x3F << 5
 

Definition at line 33 of file utility.h.

const uint16_t PHAL::COLOR_LIGHTGRAY = 0xC618
 

Definition at line 29 of file utility.h.

const uint16_t PHAL::COLOR_PINK = COLOR_RED | COLOR_BLUE
 

Definition at line 37 of file utility.h.

const uint16_t PHAL::COLOR_RED = 0x1F << 11
 

Definition at line 32 of file utility.h.

const uint16_t PHAL::COLOR_WHITE = 0xFFFF
 

Definition at line 30 of file utility.h.

const uint16_t PHAL::COLOR_YELLOW = COLOR_RED | COLOR_GREEN
 

Definition at line 36 of file utility.h.

const uint8_t PHAL::VGAFONT[] [static]
 

Initial value:

{
    #include "VGAFont.h"
}

Definition at line 20 of file utility.cpp.

Referenced by DrawChar().

 This page was generated at Wed May 31 13:04:19 2006 for OpenVideo by Doxygen.
 If you have any comments, please send a message to schmalstieg@icg.tu-graz.ac.at.
www.studierstube.org