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

📄 skybox.h

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

#if !defined(AFX_SKYBOX_H__6BA5ABA5_8955_11D1_8F4C_906A73C10500__INCLUDED_)
#define AFX_SKYBOX_H__6BA5ABA5_8955_11D1_8F4C_906A73C10500__INCLUDED_

#include "Texture.h"	// Hinzugef黦t von der Klassenansicht
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// Conversion factor for converting between degrees and radians
#define PI_OVER_180 0.0174532925f

class CSkyBox
{
public:
	CTexture m_SkyBoxTexture;
	void DrawSkyBox(float fXRotation, float fYRotation, 
		unsigned int iFOV, float fSkyBrightness , float fAspect);
	CSkyBox();
	virtual ~CSkyBox();

private:
	void Project2D(const float fU, const float fV, const float fPlane,
				   const unsigned int iFOV, float fAspect, float fVertex3DOut[3]);
};

#endif // !defined(AFX_SKYBOX_H__6BA5ABA5_8955_11D1_8F4C_906A73C10500__INCLUDED_)

⌨️ 快捷键说明

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