OpenVideo Documentation

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

utility.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  PHAL

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


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 PHAL::CHAR_HEIGHT, PHAL::CHAR_SIZE, PHAL::VGAFONT, x02, x10, and x80.

Referenced by PHAL::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 PHAL::CHAR_WIDTH, and PHAL::DrawChar().

Referenced by TestWinCE::OnGameLoop().


Variable Documentation

const int PHAL::CHAR_HEIGHT = 16 [static]
 

Definition at line 26 of file utility.cpp.

Referenced by PHAL::DrawChar().

const int PHAL::CHAR_SIZE = 16 [static]
 

Definition at line 27 of file utility.cpp.

Referenced by PHAL::DrawChar().

const int PHAL::CHAR_WIDTH = 8 [static]
 

Definition at line 25 of file utility.cpp.

Referenced by PHAL::DrawText().

const uint8_t PHAL::VGAFONT[] [static]
 

Initial value:

{
    #include "VGAFont.h"
}

Definition at line 20 of file utility.cpp.

Referenced by PHAL::DrawChar().

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