Flow Visualisation
Camera.h
Go to the documentation of this file.
1 //
2 // Camera.h
3 // flowviz
4 //
5 // Created by Johann Götz on 11.05.15.
6 // Copyright (c) 2015 Johann Götz. All rights reserved.
7 //
8 
9 #ifndef __flowviz__Camera__
10 #define __flowviz__Camera__
11 
12 #include <stdio.h>
13 
14 #include "glm.hpp"
15 #include "matrix_transform.hpp"
16 #include "ISceneGraphPart.h"
17 #include "SceneContext.h"
18 
19 namespace render {
20 
24  class Camera : public ISceneGraphPart
25  {
26  private:
27  float m_worldWidth;
28  float m_worldHeight;
29 
30  public:
31  Camera(int worldWidth, int worldHeight) : m_worldWidth((float)worldWidth), m_worldHeight((float)worldHeight) {}
32 
38  virtual void render(render::SceneContext *context);
39  };
40 }
41 
42 #endif /* defined(__flowviz__Camera__) */
Represents the current state of rendering.
Definition: SceneContext.h:22
Represents part of the SceneGraph.
Definition: ISceneGraphPart.h:23
Camera(int worldWidth, int worldHeight)
Definition: Camera.h:31
Definition: Camera.h:19
Simpel parallel projecting camera.
Definition: Camera.h:24
virtual void render(render::SceneContext *context)
Sets itself as active camera.
Definition: Camera.cpp:14