📄 base.h
字号:
#if !defined(AFX_BASE_H__19BD59EB_1A65_420F_B8CC_09F798CE485C__INCLUDED_)
#define AFX_BASE_H__19BD59EB_1A65_420F_B8CC_09F798CE485C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <stdio.h>
#include <stdarg.h>
#include <d3dx8.h>
#include <dinput.h>
#include <dmusici.h>
#include <dsound.h>
#include <dshow.h>
#include <windows.h>
#define SafeRelease(pInterface) if(pInterface!=NULL) {pInterface->Release(); pInterface=NULL;}
#define SafeDelete(pObject) if(pObject!=NULL) {delete pObject; pObject=NULL;}
#define KEYDOWN(name,key) (name[key] & 0x80)
#define MOUSEBUTTONDOWN(key) (key & 0x80)
//Mouse buttons
#define MOUSEBUTTON_LEFT 0
#define MOUSEBUTTON_RIGHT 1
#define MOUSEBUTTON_MIDDLE 2
#define SUMBALL 10
//***********Lock************
#define CUEMAXSPEED 4.0f
#define HALFCUEMAXSPEED 2.0f
//Fourth three CUEMAXSPEED
#define F_T_CUEMAXSPEED 3.0f
//***************************
class CBase
{
private:
static bool m_fEnableLogging;
public:
CBase();
virtual ~CBase();
D3DXVECTOR3 GetTriangleNormal(D3DXVECTOR3* vVertex1,
D3DXVECTOR3* vVertex2,
D3DXVECTOR3* vVertex3);
static void StartLogging();
static void StopLogging();
static void LogError(char *lpszText,...);
static void LogInfo(char *lpszText,...);
static void LogWarning(char *lpszText,...);
};
#endif // !defined(AFX_BASE_H__19BD59EB_1A65_420F_B8CC_09F798CE485C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -