Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/importer/heightMapViewer.h @ 3387

Last change on this file since 3387 was 3384, checked in by bensch, 20 years ago

orxonox/branches/nico: moved hightmap to importer, there are still some files missing…

File size: 888 bytes
Line 
1/*
2 *  legotown.h
3 *  legotown3d
4 *
5 *  Created by Nico Bernold on 08.01.05.
6 *  Copyright 2005 __MyCompanyName__. All rights reserved.
7 *
8 */
9
10#include <iostream>
11using namespace std;
12
13#include "heightMapTerrain.h"
14
15#include "windowHandler.h"
16#include "vector.h"
17
18#include "../stdincl.h"
19
20#define WIDTH        640
21#define HEIGHT       480
22#define FULLSCREEN   false
23
24/*
25#define WIDTH        1280
26#define HEIGHT       854
27#define FULLSCREEN   true
28*/
29
30class HeightMapViewer
31{
32public:
33        HeightMapViewer();
34        ~HeightMapViewer();
35       
36        bool init(char* fileName);
37        bool run();
38
39private:               
40        void drawScene();
41        void updateView();
42       
43        WindowHandler windowhandler;
44        HeightMapTerrain terrain;       
45
46        bool wireframe;
47        bool mousedown;
48
49        Vector cameraPos;
50        Vector sightDirection;
51        Vector lookAt;
52        Vector upVector;
53       
54        // used for some movement calculations
55        Vector perpendicularToSight;
56        Quaternion rotator;
57};
Note: See TracBrowser for help on using the repository browser.