graphics.h
来自「空战游戏flacon源码」· C头文件 代码 · 共 37 行
H
37 行
#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 + =
减小字号Ctrl + -
显示快捷键?