TP3 + classe Skybox

This commit is contained in:
Marc-Eric Martel
2021-10-12 15:58:54 -04:00
parent 6f3dd99ab7
commit 167548dfc2
9 changed files with 135 additions and 89 deletions

25
SQCSim2021/skybox.h Normal file
View 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__