📄 baseheader.h
字号:
#pragma once
//windows和c语言的头文件
#include <windows.h>
#include <stdio.h>
#include "resource.h"
#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <memory.h>
#include <assert.h>
#include <tchar.h>
#include <d3d9.h>
#include <d3dx9.h>
#include <DShow.h>
#include <atlconv.h>
#include <comutil.h>
#include <WinBase.h>
#include <d3d9types.h>
#include <list>
#include <string>
#include <vector>
#include <iterator>
#include <map>
#include <DShow.h>
#include <stdlib.h>
#include <stdio.h>
#include <atlconv.h>
#include <comutil.h>
#include <math.h>
#include <wingdi.h>
#define PI 3.1415926535897932384626433832795f
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.h>
//--D3D以及windows用的lib库
#pragma comment(lib,"strmiids.lib")
#pragma comment(lib,"comsupp.lib")
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
#pragma comment(lib, "winmm.lib")
#pragma comment(lib,"Winmm.lib")
#pragma comment(lib,"Dinput8.lib")
#pragma comment(lib,"Dxguid.lib")
#define GETR(c) ((c)&255) //获得红色值
#define GETG(c) (((c)>>8)&255) //获得绿色值
#define GETB(c) (((c)>>16)&255) //获得蓝色值
#define GETA(c) (((c)>>24)&255) //获得通道值
//使用宏定义
#define SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } }
#define SAFE_DELETE_ARRAY(p) { if(p) { delete[] (p); (p)=NULL; } }
#define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } }
//使用命名空间
using namespace std;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -