TP3 + classe Skybox
This commit is contained in:
25
SQCSim2021/skybox.h
Normal file
25
SQCSim2021/skybox.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef SKYBOX_H__
|
||||
#define SKYBOX_H__
|
||||
|
||||
#include "define.h"
|
||||
#include "vertexbuffer.h"
|
||||
#include "texture.h"
|
||||
#include "transformation.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__
|
Reference in New Issue
Block a user