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

📄 cgl.h

📁 c++程序
💻 H
字号:
// CGL.h: Schnittstelle f黵 die Klasse CGL.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GL_H__E9B4C5E2_A6CD_11D1_8F4C_40A87CC10B05__INCLUDED_)
#define AFX_GL_H__E9B4C5E2_A6CD_11D1_8F4C_40A87CC10B05__INCLUDED_

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

#include "stdafx.h"

class CGL  
{
public:
	float GetAspect();
	void SwapBuffers();
	void DestroyGL();
	bool InitGL(unsigned int Width, unsigned int Height, bool bFullscreen, HWND hWnd);
	CGL();
	virtual ~CGL();
	void Resize(unsigned int iWidth, unsigned int iHeight, unsigned int iFOV, float fViewDepth);
private:
	float m_Aspect;
	HGLRC m_hRC;	// Permanent rendering context
	HDC m_hDC;		// Private GDI device context
	HWND m_hWnd;	// Window to wich the RC is attached
	bool ChangeResolution(unsigned int iWidth, unsigned int iHeight);
	bool InitGLState();
};

#endif // !defined(AFX_GL_H__E9B4C5E2_A6CD_11D1_8F4C_40A87CC10B05__INCLUDED_)

⌨️ 快捷键说明

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