GlobeEngine
HikingInfoWindow.h
Go to the documentation of this file.
1 //
2 // HikingInfoWindow.h
3 // GlobeEngine
4 //
5 // Created by Mathias Thöny on 27.12.11.
6 // Copyright (c) 2011 University of Zurich. All rights reserved.
7 //
8 
9 #ifndef HikingEngine_HikingInfoWindow_h
10 #define HikingEngine_HikingInfoWindow_h
11 
12 #include <vmmlib/matrix.hpp>
13 #include "OpenGL_Includes.h"
14 #include "DrawableComponent.h"
15 #include "Camera.h"
16 
17 namespace geHikingViewer {
18 
20  {
21  public:
23  void create() {};
24  void create(std::shared_ptr<ge::Shader> _shader, vmml::Vector2f _pos);
25  void clear();
26  void draw(std::shared_ptr<ge::Camera> _cam, GLuint _texHandle, GLint _unit);
27  void update();
28 
29  void setModelViewMatrix(vmml::Matrix4d _mat);
30  void setProjectionMatrix(vmml::Matrix4d _mat);
31  void setViewport(vmml::Vector2d _viewport);
32 
33  private:
34  using ge::DrawableComponent::draw; // implicitly hidden
35 
36  void setUniformsForMatrices();
37  vmml::Vector2f win_position;
38  vmml::Matrix4d viewMatrix;
39  vmml::Matrix4d projectionMatrix;
40  vmml::Vector2d viewport;
41  };
42 }
43 #endif
Definition: DrawableComponent.h:25
Definition: HikingComposition.h:14
Definition: HikingInfoWindow.h:19
void create()
Definition: HikingInfoWindow.h:23
virtual void draw(std::shared_ptr< ge::Camera > _cam)
Definition: DrawableComponent.cpp:76
void update()
Definition: HikingInfoWindow.cpp:51
void setProjectionMatrix(vmml::Matrix4d _mat)
Definition: HikingInfoWindow.cpp:87
void setViewport(vmml::Vector2d _viewport)
Definition: HikingInfoWindow.cpp:92
void draw(std::shared_ptr< ge::Camera > _cam, GLuint _texHandle, GLint _unit)
Definition: HikingInfoWindow.cpp:56
void clear()
Definition: HikingInfoWindow.cpp:5
void setModelViewMatrix(vmml::Matrix4d _mat)
Definition: HikingInfoWindow.cpp:82
HikingInfoWindow()
Definition: HikingInfoWindow.h:22