#include "global.hh"
#include "sys_main.hh"
Functions | |
static void | ToggleFullscreen () |
static void | DrawScene () |
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. | |
int | main (int argc, char **argv) |
Variables | |
bool | bMapEditor_Enabled = 0 |
bool | bGameOver = 0 |
SDL_Surface * | pScreenSurface |
SDL_Surface * | pBackground |
SDL_Surface * | pMainScreen |
SDL_Surface * | pGameOverScreen |
Uint32 | iFullscreenFlag = 0 |
TTF_Font * | sys_pFont = 0 |
SDL_Event | sys_event |
void DrawScene | ( | ) | [static] |
int main | ( | int | argc, | |
char ** | argv | |||
) |
void SYS_DrawString | ( | const int | x, | |
const int | y, | |||
const unsigned char | flags, | |||
const char * | fmt, | |||
... | ||||
) |
Draws a string with the default font.
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 | ( | ) |
void ToggleFullscreen | ( | ) | [static] |
bool bGameOver = 0 |
bool bMapEditor_Enabled = 0 |
Uint32 iFullscreenFlag = 0 |
SDL_Surface* pBackground |
SDL_Surface * pGameOverScreen |
SDL_Surface * pMainScreen |
SDL_Surface* pScreenSurface |
SDL_Event sys_event |
TTF_Font* sys_pFont = 0 |