skybox.h
来自「小型的3D游戏引擎」· C头文件 代码 · 共 34 行
H
34 行
// -----------------------------------------------------
// A skybox class for generating the sky
// Draws a sky-textured cube without depth testing on
// -----------------------------------------------------
#ifndef _SKYBOX_H_
#define _SKYBOX_H_
#include "../Texture.h"
#include <gl/gl.h>
#include "../global.h"
#include "../debugging/debug.h"
enum CardinalPoint { North, South, West, East, Up, Down };
class GcSkybox
{
public:
GcSkybox();
~GcSkybox();
bool Draw();
bool LoadSide( char * filename, CardinalPoint side );
bool AllSidesLoaded() { return ( (m_sides_loaded == 6) ? true : false ); }
private:
bool Create();
bool Unload();
GcTexture * m_side[6];
unsigned short m_sides_loaded;
};
#endif // _SKYBOX_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?