📄 main.h
字号:
//-----------------------------------------------------------------------------
// File: Main.h
// Desc: The Main Program File. "My Second 3D Project".
//-----------------------------------------------------------------------------
#ifndef Main_h
#define Main_h
#include <windows.h>
#include <mmsystem.h>
#include <fstream.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <dinput.h>
#include "cApp.h"
#define WIN_WIDTH 1024
#define WIN_HEIGHT 768
#define SafeRelease(pInterface) if(pInterface != NULL) {pInterface->Release(); pInterface=NULL;}
#define SafeDelete(pObject) if(pObject != NULL) {delete pObject; pObject=NULL;}
//-----------------------------------------------------------------------------
// Global variables
//-----------------------------------------------------------------------------
extern cApp* g_pApp;
extern HWND hWnd;
LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -