Flow Visualisation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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__) */
glm.hpp
matrix_transform.hpp
render::SceneContext
Represents the current state of rendering.
Definition:
SceneContext.h:22
render::ISceneGraphPart
Represents part of the SceneGraph.
Definition:
ISceneGraphPart.h:23
render::Camera::Camera
Camera(int worldWidth, int worldHeight)
Definition:
Camera.h:31
render
Definition:
Camera.h:19
render::Camera
Simpel parallel projecting camera.
Definition:
Camera.h:24
SceneContext.h
render::Camera::render
virtual void render(render::SceneContext *context)
Sets itself as active camera.
Definition:
Camera.cpp:14
ISceneGraphPart.h
flowviz
flowviz
flowviz
src
render
Camera.h
Generated on Tue Jun 9 2015 21:28:24 for Flow Visualisation by
1.8.9.1