#include <main.h>
Static Public Member Functions | |
static void | initGL (int width, int height) |
Sets initial OpenGL mode parameters (dis-/enables and values). | |
static void | drawFrame (int elapsed_msec) |
Draws a single frame after updating the world for the given delta time. | |
static void | updateKey (Uint8 keysym) |
Handles "special" keys for things like rendering options. | |
static void | updatePad (cPad *pad, SDL_Joystick *joy, int *mapping) |
Reads joystick/keyboard input and maps it to to a Gamepad structure. | |
static int | sdlmain (int argc, char **args) |
Called directly by the main entry point. |
Encapsulates low level startup- and io-code. Actually it is just a collection of what would be functions otherwise.