skybox.h

来自「c++程序」· C头文件 代码 · 共 31 行

H
31
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?