update
This commit is contained in:
24
src/SkyBox.h
Normal file
24
src/SkyBox.h
Normal 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;
|
||||
};
|
Reference in New Issue
Block a user