📄 skybox.h
字号:
// -----------------------------------------------------
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -