-
Notifications
You must be signed in to change notification settings - Fork 1
/
sceneparams.h
49 lines (38 loc) · 1.15 KB
/
sceneparams.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
#ifndef SCENEPARAMS_H__
#define SCENEPARAMS_H__
class Texture;
class Shader;
class Camera;
class SceneParams
{
public:
enum PARAM_VALUE { NOT_SET, ENABLED, DISABLED };
public:
SceneParams();
void SetWidth(int v);
int GetWidth() const;
void SetHeight(int v);
int GetHeight() const;
void SetDefaultTexture(Texture* texture);
Texture* GetDefaultTexture() const;
void SetCurrentTexture(Texture* texture);
Texture* GetCurrentTexture() const;
void SetDefaultShader(Shader* shader);
Shader* GetDefaultShader() const;
void SetCurrentShader(Shader* shader);
Shader* GetCurrentShader() const;
void SetCamera(Camera* camera);
Camera* GetCamera() const;
void SetCurrentDepthTest(PARAM_VALUE depthTest);
PARAM_VALUE GetCurrentDepthTest() const;
private:
int m_width;
int m_height;
Texture* m_defaultTexture;
Texture* m_currentTexture;
Shader* m_defaultShader;
Shader* m_currentShader;
Camera* m_camera;
PARAM_VALUE m_depthTest;
};
#endif // SCENEPARAMS_H__