-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstate_manager.h
55 lines (50 loc) · 849 Bytes
/
state_manager.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include "shader.h"
#include "texture.h"
// The different shaders possible
enum Active_Shader {
NO_SHADER,
JEU,
MODEL,
SKYBOX,
TEXT
};
// The different texture possible
enum Active_Tex2D {
NO_TEX,
FENCE,
DINO1,
DINO2,
BG,
GRASS0,
GRASS1,
GRASS2,
GRASS3,
GRASS4,
GRASS5,
FERN,
VINE,
MENU
};
// Active fading effect
enum Fade_Effect {
NO_FADE,
FADIN,
FADOUT
};
class StateManager{
public:
Active_Shader shader;
Active_Tex2D tex2D;
GLboolean tex3D;
GLfloat fade;
Fade_Effect Fade;
StateManager();
void Active(Shader &_shader);
virtual void ActiveTex2D(const Tex& texture);
virtual void ActiveTex3D(const Tex& texture);
void Update(GLfloat dt);
};