add skybox, move assets

This commit is contained in:
2017-11-03 12:00:32 +10:00
parent e16915428c
commit 0f6ebbc2d4
20 changed files with 136 additions and 68 deletions

View File

@ -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;
};