class csSystemDriver This is the interface to operating system
This is the interface to operating system.This driver takes care of all system-dependent parts such as video hardware and input hardware. Note that system-dependent source code should NOT write implementations for methods of csSystemDriver (they are already implemented in system.cpp), but inherit a new class from csSystemDriver, overriding desired methods. Note that some methods it is required to override, otherwise program simply will not compile (they are marked as abstract).
This routine can also make use of the config file to get
the defaults from there (so instead of having to specify
-mode 640x480 everytime you can set this in the config file
and this routine should read that).
csEventQueue* EventQueue
INetworkDriver* piNetDrv
INetworkManager* piNetMan
IGraphics3D* piG3D
IGraphics2D* piG2D
IGraphicsInfo* piGI
int FrameWidth
int FrameHeight
bool FullScreen
int Depth
csKeyboardDriver* Keyboard
csMouseDriver* Mouse
static bool Shutdown
static bool ExitLoop
csConsole* Console
IConfig* cfg_engine
static int debug_level
static bool DemoReady
bool IsFocused
csColOption* com_options
csSystemDriver()
virtual ~csSystemDriver()
virtual bool Initialize(int argc, char *argv[], IConfig* cfg_engine)
virtual bool InitGraphics()
virtual bool InitKeyboard()
virtual bool InitMouse()
virtual bool InitSound()
virtual bool InitNetwork()
virtual bool Open(char *Title)
virtual void Close()
virtual void Loop()
virtual void NextFrame(long elapsed_time, long current_time)
virtual void Sleep(int )
virtual void SetSystemDefaults()
bool ParseCmdLine(int argc, char* argv[])
bool ParseCmdLineDriver(int argc, char* argv[])
virtual void Help()
static long Time()
static void Printf(int mode, const char* str, ...)
static void debugprintf(bool flush, const char* str, ...)
static void printf_init()
static FILE* fopen(const char* filename, const char* mode)
virtual bool ParseArg(int argc, char* argv[], int& i)
virtual bool ParseArgDriver(int argc, char* argv[], int& i)
void Help(IConfig* piConf)
csColOption* CollectOptions(IConfig* config, csColOption* already_collected)
virtual void Alert(const char* msg)
virtual void Warn(const char* msg)
virtual void DemoWrite(const char* msg)
void SetMode(const char* mode)
void do_focus(int enable)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de