Flow Visualisation
SceneContext.h
Go to the documentation of this file.
1 //
2 // SceneContext.h
3 // flowviz
4 //
5 // Created by Johann Götz on 01.05.15.
6 // Copyright (c) 2015 Johann Götz. All rights reserved.
7 //
8 
9 #ifndef __flowviz__SceneContext__
10 #define __flowviz__SceneContext__
11 
12 #include <stdio.h>
13 
14 #include "glm.hpp"
15 
16 namespace render {
17  class Shader;
18 
23  {
24  private:
25  glm::mat4 m_viewProjectionMatrix;
26  Shader *m_activeShader;
28  public:
29 
30  void reset() {}
31 
33  void set_activeShader(Shader *shader) { m_activeShader = shader; }
35  Shader* get_activeShader() { return m_activeShader; }
36 
38  void set_viewProjectionMatrix(glm::mat4 viewProjectionMatrix) { m_viewProjectionMatrix = viewProjectionMatrix; }
40  const glm::mat4& get_viewProjectionMatrix() { return m_viewProjectionMatrix; };
41  };
42 }
43 #endif /* defined(__flowviz__SceneContext__) */
void set_activeShader(Shader *shader)
Sets the active shader.
Definition: SceneContext.h:33
void set_viewProjectionMatrix(glm::mat4 viewProjectionMatrix)
Sets the active camera marix.
Definition: SceneContext.h:38
Shader * get_activeShader()
Returns the active shader.
Definition: SceneContext.h:35
Represents the current state of rendering.
Definition: SceneContext.h:22
Definition: Camera.h:19
void reset()
active shader
Definition: SceneContext.h:30
const glm::mat4 & get_viewProjectionMatrix()
Returns the active camera matrix.
Definition: SceneContext.h:40
OpenGL shader class.
Definition: Shader.h:51
Definition: type_mat2x2.hpp:49