Introduction - If you have any usage issues, please Google them yourself
CDrawGameEx::CDrawGameEx(void)
{
//全局当前对象
gthis = this
//FPS
_fps = NULL
//摄像机
_theCamera = NULL
//map
_maps = NULL
_skyBox = NULL
//Role
_Roles = NULL
//UI 界面
_EngineRender = NULL
_mainGui =-1
_startGui =-1
_creditsGui =-1
_currentGUI = GUI_MAIN_SCREEN
//font id
_arialID =-1
_InputSystem = NULL
//mouse x y
_mouseX = 0
_mouseY = 0
_LMBDown = false
_RMBDown = false
//sound id
_Sound_OverMenu =-1
_SoundSystem = NULL
//Game states
_gameState = GS_MENU
//handle
_hwnd = NULL
_MapOtherCS.clear()
IsCheckToServer = false
//debug
_debug = NULL
testLineID =-1
}
CDrawGameEx::~CDrawGameEx(void)
{
SAFE_DELETE(_fps)
SAFE_DELETE(_theCamera)
//map
SAFE_DELETE(_maps)
//Role
SAFE_DELETE(_Roles)
//Debug
SAFE_DELETE(_debug)
}
void CDrawGameEx::ShutdownEngine()
{
if(_EngineRender)
{
_EngineRender->Shutdown()
delete _Engin