2021-10-12 15:58:54 -04:00
|
|
|
#ifndef SKYBOX_H__
|
|
|
|
#define SKYBOX_H__
|
|
|
|
|
2023-09-30 14:46:54 -04:00
|
|
|
#include "../SQCSim-common/transformation.h"
|
2021-10-12 15:58:54 -04:00
|
|
|
#include "define.h"
|
|
|
|
#include "vertexbuffer.h"
|
|
|
|
#include "texture.h"
|
|
|
|
#include "shader.h"
|
|
|
|
|
|
|
|
class Skybox {
|
|
|
|
private:
|
|
|
|
VertexBuffer m_vertexBuffer;
|
|
|
|
Texture m_texture;
|
|
|
|
Shader m_shader;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Skybox();
|
|
|
|
~Skybox();
|
|
|
|
void Init(float size);
|
|
|
|
void Render(Transformation trans) const;
|
|
|
|
Texture& GetTexture();
|
|
|
|
Shader& GetShader();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SKYBOX_H__
|