sys_main.hh File Reference

#include "global.hh"

Include dependency graph for sys_main.hh:

This graph shows which files directly or indirectly include this file:


Defines

#define SYS_DS_USEFLAGS   0x10
#define SYS_DS_HCENTER   0x01
#define SYS_DS_VCENTER   0x02
#define SYS_DS_RIGHT   0x04
#define SYS_DS_BOTTOM   0x08

Functions

int SYS_Init (int argc, char **argv)
void SYS_Shutdown ()
void SYS_Frame ()
void SYS_Error (const char *fmt,...)
 Terminate the program and show an error message.
unsigned short SYS_Random (unsigned short min, unsigned short max)
 Generate a random number between 'min' and 'max'.
void SYS_DrawString (const int x, const int y, const unsigned char flags, const char *fmt,...)
 Draws a string with the default font.

Define Documentation

#define SYS_DS_BOTTOM   0x08

#define SYS_DS_HCENTER   0x01

#define SYS_DS_RIGHT   0x04

#define SYS_DS_USEFLAGS   0x10

#define SYS_DS_VCENTER   0x02


Function Documentation

void SYS_DrawString ( const int  x,
const int  y,
const unsigned char  flags,
const char *  fmt,
  ... 
)

Draws a string with the default font.

Parameters:
x The X location of the text.
y The Y location of the text.
flags Use SYS_DS_USEFLAGS in combination with one of the flags SYS_DS_HCENTER/SYS_DS_RIGHT, SYS_DS_VCENTER/SYS_DS_BOTTOM to center text horizontally/vertically or to align it to the top/bottom.
fmt The string containing the format to be drawn. This equals printf()'s string format.
... Additional arguments (depending on fmt).

void SYS_Error ( const char *  fmt,
  ... 
)

Terminate the program and show an error message.

void SYS_Frame (  ) 

int SYS_Init ( int  argc,
char **  argv 
)

unsigned short SYS_Random ( unsigned short  min,
unsigned short  max 
)

Generate a random number between 'min' and 'max'.

void SYS_Shutdown (  ) 


Generated on Fri Feb 22 09:36:52 2008 for Mega Maryo by  doxygen 1.5.5