glframework.h

来自「实战粒子系统例程」· C头文件 代码 · 共 36 行

H
36
字号
/*
	glframework.h - OpenGL framework
	Copyright (c) HalfLucifer, 2001.6.19
*/
#ifndef __GLFRAMEWORKH__
#define __GLFRAMEWORKH__

#pragma comment(lib, "opengl32.lib")	// Search for opengl32.lib while linking
#pragma comment(lib, "glu32.lib")		// Search for glu32.lib while linking
#pragma comment(lib, "dxguid.lib")		// Search for the DXguid library
#pragma comment(lib, "dinput8.lib")		// Search for the DirectInput8 library
#pragma comment(lib, "ijl15.lib")		// Search for ijl15.lib while linking

#include <windows.h>

bool  FULLSCREEN_FLAG	= false;
bool  VISIBLE_FLAG		= false;
bool  PROGRAM_QUIT		= false;

HINSTANCE	hInstance;
HWND		hWnd;						// Window handle
HDC			hDC;						// Device context
HGLRC		hRC;						// Rendering context

bool SetScreenResolution(int width, int height, int bbp);
LRESULT CALLBACK WindowProcedure(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
bool glCreateWindow(char *title, int width, int height, int bbp, bool fsflag);
bool glDestroyWindow();
int WINAPI WinMain(HINSTANCE hInstance,	HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow);

bool glInitialize();
void glShutDown(void);
void glReshape(int width, int height);
void glDrawScene();

#endif

⌨️ 快捷键说明

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