X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=skybox.hpp;h=0b523758a89f2c0d755e848975eb53f35c793c3f;hp=f1ac4ee9a19c2ab3bab08440c496e49515855756;hb=a03f2bc751bbd7f91cbc2f52d2f0f6e753d6f776;hpb=c44e69ec78367fb2957324026894aef970f2481a diff --git a/skybox.hpp b/skybox.hpp index f1ac4ee..0b52375 100644 --- a/skybox.hpp +++ b/skybox.hpp @@ -1,13 +1,21 @@ +#ifndef SKYBOX_HPP +#define SKYBOX_HPP + #include #include #include #include #include "program.hpp" +#include "image.hpp" class Skybox { public: - Skybox(const std::vector faces); + // img must be HDR + Skybox(const Image img); void draw(glm::mat4 proj, glm::mat4 view) const; + GLuint getTexture() const; private: GLuint texId, vao; const Program program; }; + +#endif