00001 #pragma once 00002 00008 #include "Base.h" 00009 #include "System.h" 00010 #include "GraphicMgr.h" 00011 #include "AudioMgr.h" 00012 #include "SoundMgr.h" 00013 #include "MusicMgr.h" 00014 #include "InputMgr.h" 00015 #include "TaskMgr.h" 00016 00017 #ifdef _MSC_VER 00018 # ifdef NDEBUG 00019 # pragma comment(lib, "UQGL.lib") 00020 # else 00021 # pragma comment(lib, "UQGL_debug.lib") 00022 # endif 00023 # pragma comment(linker, "/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup") 00024 #endif 00025 00026 namespace UQ{ 00027 00028 inline System* getSystem(void){return System::getInstance();} 00029 inline GraphicMgr* getGM(void){return System::getInstance()->getGraphicMgr();} 00030 inline AudioMgr* getAM(void){return System::getInstance()->getAudioMgr();} 00031 inline SoundMgr* getSM(void){return System::getInstance()->getAudioMgr()->getSoundMgr();} 00032 inline MusicMgr* getMM(void){return System::getInstance()->getAudioMgr()->getMusicMgr();} 00033 inline InputMgr* getIM(void){return System::getInstance()->getInputMgr();} 00034 inline TaskMgr* getTM(void){return System::getInstance()->getTaskMgr();} 00035 00036 } // namespace UQ