projects
/
opengl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PBR checkpoint
[opengl.git]
/
skybox.hpp
1
#ifndef SKYBOX_HPP
2
#define SKYBOX_HPP
3
4
#include <string>
5
#include <vector>
6
#include <GL/glew.h>
7
#include <glm/glm.hpp>
8
#include "program.hpp"
9
#include "image.hpp"
10
class Skybox {
11
public:
12
// img must be HDR
13
Skybox(const Image img);
14
void draw(glm::mat4 proj, glm::mat4 view) const;
15
GLuint getTexture() const;
16
private:
17
GLuint texId, vao;
18
const Program program;
19
};
20
21
#endif