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

📄 graphics.h

📁 空战游戏flacon源码
💻 H
字号:
#ifndef _GRAPHICS_H_
#define _GRAPHICS_H_

//#define	USE_FULLSCREEN

#ifdef _MBCS
#include <afxwin.h>
#else
#include <windows.h>
#endif
#include <ddraw.h>
#include <mpr.h>
#include "..\..\..\DDStuff\DevMgr.h"
#include "..\..\..\DDStuff\ImageBuf.h"
#include "..\..\..\3Dlib\define.h"
#include "..\..\..\3Dlib\mprstuff.h"

class GLGraphics {
public:
	GLGraphics()	{};
	~GLGraphics()	{};

	GLint	Setup (	HWND hwnd, GLint width, GLint height, GLint depth);
	void	Cleanup ();
	void	WindowMove (HWND hwnd);
	void	StartFrame (GLint zflag = 0);
	void	FlipBuffer ();
//___________________________________________________________________
	DeviceManager		devmgr;
	DisplayDevice		*device;
	ImageBuffer			*image;
	ContextMPR			context;
//___________________________________________________________________
};

#endif

⌨️ 快捷键说明

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