projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reflection
[opengl.git]
/
skybox.hpp
diff --git
a/skybox.hpp
b/skybox.hpp
index f1ac4ee9a19c2ab3bab08440c496e49515855756..759ce7a2f484886a8302c446252eb9c83f4f7de5 100644
(file)
--- a/
skybox.hpp
+++ b/
skybox.hpp
@@
-1,3
+1,6
@@
+#ifndef SKYBOX_HPP
+#define SKYBOX_HPP
+
#include <string>
#include <vector>
#include <GL/glew.h>
#include <string>
#include <vector>
#include <GL/glew.h>
@@
-7,7
+10,10
@@
class Skybox {
public:
Skybox(const std::vector<std::string> faces);
void draw(glm::mat4 proj, glm::mat4 view) const;
public:
Skybox(const std::vector<std::string> faces);
void draw(glm::mat4 proj, glm::mat4 view) const;
+ GLuint getTexture() const;
private:
GLuint texId, vao;
const Program program;
};
private:
GLuint texId, vao;
const Program program;
};
+
+#endif