⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dxdw.h

📁 本程序表现了一个草地在天空飞行的情景本程序是系列程序的第四步。
💻 H
字号:

#ifndef _DXDW_H
#define _DXDW_H

#include <ddraw.h>
#include <windows.h>
#include <mmsystem.h>

struct tmpXY
{
	int index;
	int x,y;
};

class DX 
{
private:
	void sortXY(tmpXY *txy);
	RECT tRect(int left,int top,int right,int bottom);
	HRESULT CreateBMP(int width,int height,char* filename,LPDIRECTDRAWSURFACE7 &tsurf);
	void BltMan();
	void ClearBuf();
	void Flip();
public:
	bool keydown;
	void Render(); 
	HRESULT InitDX(HWND thWnd,bool tfullscreen=false);
	HRESULT InitBmp();
	int manindex,rowindex;
	DX();
	~DX();
};



#endif

⌨️ 快捷键说明

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