add skybox, move assets
This commit is contained in:
12
src/SkyBox.h
12
src/SkyBox.h
@ -1,9 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <glad/glad.h>
|
||||
#include "gl.h"
|
||||
#include "Mesh.h"
|
||||
|
||||
#include <glm/mat4x4.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
class SkyBox {
|
||||
public:
|
||||
|
||||
@ -14,11 +18,13 @@ public:
|
||||
bool Load(const std::string basename);
|
||||
bool Load(GLuint target, const std::string filename);
|
||||
|
||||
void Bind(GLenum TextureUnit);
|
||||
void Render(glm::mat4 mvp);
|
||||
|
||||
void Render();
|
||||
private:
|
||||
|
||||
std::string fileNames[6];
|
||||
GLuint textureId, programId;
|
||||
GLint textureLoc, MVPloc;
|
||||
Mesh mesh;
|
||||
GLMesh glMesh;
|
||||
};
|
||||
|
Reference in New Issue
Block a user