blob: 61c159b175a9ab015f0ad64db98c17cc55db52af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "programHandle.h"
#include <GL/glew.h>
#include <array>
#include <glm/glm.hpp>
class Location;
class SceneShader {
public:
enum class Program { Basic = 0, Water = 1, LandMass = 2, StaticPos = 3 };
SceneShader();
void setView(glm::mat4 view) const;
void setModel(const Location &, Program = Program::Basic) const;
void setUniform(const GLchar *, glm::vec3 dir) const;
private:
class ProgramHandle : public ProgramHandleBase {
public:
ProgramHandle(GLuint, GLuint);
};
std::array<ProgramHandle, 4> programs;
};
|