This commit is contained in:
2017-11-02 12:44:44 +10:00
parent f2815b796a
commit 7b2946a961
27 changed files with 2048 additions and 742 deletions

24
src/SkyBox.h Normal file
View File

@ -0,0 +1,24 @@
#pragma once
#include <glad/glad.h>
#include <string>
class SkyBox {
public:
SkyBox();
~SkyBox();
bool Load(const std::string basename);
bool Load(GLuint target, const std::string filename);
void Bind(GLenum TextureUnit);
void Render();
private:
std::string fileNames[6];
GLuint textureId, programId;
};