Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3390 was 3390, checked in by bensch, 19 years ago

orxonox/branches/nico: heightmap now compiles on all platforms

File size: 919 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
21#define WIDTH        640
22#define HEIGHT       480
23
24//#define WIDTH        1280
25//#define HEIGHT       854
26//#define FULLSCREEN
27
28
29class HeightMapViewer
30{
31public:
32        HeightMapViewer();
33        ~HeightMapViewer();
34       
35        bool init(char* fileName);
36        bool run();
37
38private:               
39        void drawScene();
40        void updateView();
41       
42        WindowHandler windowhandler;
43        HeightMapTerrain terrain;       
44
45        bool wireframe;
46        bool mousedown;
47        bool smoothShading;
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};
58
59Vector perpendicular (Vector perpendic);
Note: See TracBrowser for help on using the repository browser.