GlobeEngine
MobileCoreEngine.h
Go to the documentation of this file.
1 //
2 // CoreEngine.h
3 // CoreEngine
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 MobileCoreEngine_h
10 #define MobileCoreEngine_h
11 
12 #include <math.h>
13 #include <ctime>
14 #include <iostream>
15 #include <stdio.h>
16 #include <vector>
18 #include "OpenGL_Includes.h"
19 #include "MemoryState.h"
20 #include "SceneStateSet.h"
21 #include "FlightCamera.h"
22 #include "Engine.h"
23 #include "CoordinateSystem.h"
24 #include "Cube.h"
25 #include "Plane.h"
26 
27 
29 {
30  public:
33 
34  void clear();
35  void create();
36  //void initializeScene(int _w, int _h);
37  void initializeScene(std::string _initFilePath=0);
38  void update();
39  void drawScene();
40  void resize(int _w, int _h);
41 
43 
44  // some helper for qt
45  std::string qrcFileToString(std::string _qrcurl);
46 
47 private:
48  void getOpenGLError(std::string _input);
49 
50  ge::SceneStateSet sceneStates[1];
51  ge::CoordinateSystem coordinateSystem;
52  std::shared_ptr<ge::Shader> programForUtilities;
53  std::shared_ptr<ge::Shader> programForCubes;
54  std::shared_ptr<ge::Shader> programForPlanes;
55 
56  ge::Cube* cube;
57  ge::Plane* plane;
58  float cube_rotation;
59  MobileViewerInputControl inputControl;
60  geUtil::MemoryState openglMemory;
61 
62  int screenWidth;
63  int screenHeight;
64 };
65 
66 #endif
void initializeScene(std::string _initFilePath=0)
Definition: MobileCoreEngine.cpp:51
MobileViewerInputControl * getInputControl(int index)
Definition: MobileCoreEngine.cpp:163
std::string qrcFileToString(std::string _qrcurl)
Definition: MobileCoreEngine.cpp:40
Definition: MemoryState.h:16
~MobileCoreEngine()
Definition: MobileCoreEngine.cpp:16
Definition: Cube.h:14
Definition: Plane.h:26
void clear()
Definition: MobileCoreEngine.cpp:24
void resize(int _w, int _h)
Definition: MobileCoreEngine.cpp:168
MobileCoreEngine()
Definition: MobileCoreEngine.cpp:7
void drawScene()
Definition: MobileCoreEngine.cpp:150
Definition: Engine.h:20
Definition: MobileCoreEngine.h:28
Definition: SceneStateSet.h:41
Definition: MobileViewerInputControl.h:16
void update()
Definition: MobileCoreEngine.cpp:138
Definition: CoordinateSystem.h:17
void create()
Definition: MobileCoreEngine.cpp:35