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

📄 glsetup.h

📁 粒子系统编辑器 包括了很多特效
💻 H
字号:
/*****************************************************************************
 *
 * 
 * Routine written by & copyright (c) Brian Tischler 07/2000
 * Author e-mail : briandeb@telusplanet.net
 *
 * The source can be modified, reused & redistributed for non-profitable 
 * uses. Use for commercial purposes without author's permission prohibited.
 *
 *****************************************************************************/



// GLSetup.h: interface for the GLSetup class.
//
//////////////////////////////////////////////////////////////////////
#include <windows.h>	// Header File For Windows
#include <gl\gl.h>		// Header File For The OpenGL32 Library
#include <gl\glu.h>		// Header File For The GLu32 Library
#include <math.h>		// For the sin() function

#if !defined(AFX_GLH_H__95B7E042_E85B_11D3_8633_C60AC87D3859__INCLUDED_)
#define AFX_GLH_H__95B7E042_E85B_11D3_8633_C60AC87D3859__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//which texture to load, easier than correlating
//numbers to bitmaps
enum Texture_Objects { KEY = 0, STAR, BUBBLE, SPARK, CIRCLE, CLOUD, LOWKEY };

class CGLSetup
{
public:

	//constructor
	CGLSetup();

	//destructor
	virtual ~CGLSetup();
	//generate the textures of OGL
	GLLoadTextures(GLuint* ptList);

	//resize the window
	ReSizeGLScene(GLsizei Width, GLsizei Height);

	//set up all the initial params for the Opengl window
	InitGL(GLsizei Width, GLsizei Height);

	//non glaux to load a bitmap 24 bit color file
	BOOL LoadBMP(TCHAR* szFileName);

};

#endif // !defined(AFX_GLH_H__95B7E042_E85B_11D3_8633_C60AC87D3859__INCLUDED_)

⌨️ 快捷键说明

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