common.cpp

来自「一个自己写的游戏引擎,用DirectX 写成」· C++ 代码 · 共 30 行

CPP
30
字号
//--------------------------------------------------
//  Desc: Common process
//  Author: artsylee/2006.8.6
//--------------------------------------------------
#include "../stdafx.h"
#include "Common.h"
#include "Input.h"
#include "Font.h"

CInput g_Input;								// 有效期: Application(Init-?)
stInputInfo g_stInputInfo;					// 有效期: Application(MainLoop)
GFont g_Font;								// 有效期: Application(Init-?)
LPDIRECT3DDEVICE9 g_pD3DDevice = NULL;		// 有效期: Application(Init-Destory)
CTextureManager* g_pTextureManager = NULL;	// 有效期: Application(Init-Destory)
CFrameManager*g_pFrameManager = NULL;		// 有效期: Application(Init-Destory)
CGraphics* g_pGraphics = NULL;				// 有效期: Application(Init-Destory)
GUIManager* g_pGUIManager = NULL;			// 有效期: Application(Init-Destory)
CGameApp* g_pGameApp = NULL;				// 有效期: Application(构造-析构)
/*
g_pLog在Log.cpp中定义
// 有效期: Application(Init-Destory)

g_pMessageManager在Message.cpp中定义
// 有效期: Application(Init-Destory)
*/		
bool g_bMultiSample = false;

//--------------------------------------------------
// end of this file
//--------------------------------------------------

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?