Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/heightMap/heightMapViewer.h @ 3382

Last change on this file since 3382 was 3381, checked in by nico, 20 years ago

developing heightMap

File size: 905 bytes
RevLine 
[3381]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 "SDL.h"
19#include <GLUT/glut.h>
20
21
22#define WIDTH        640
23#define HEIGHT       480
24#define FULLSCREEN   false
25
26/*
27#define WIDTH        1280
28#define HEIGHT       854
29#define FULLSCREEN   true
30*/
31
32class HeightMapViewer
33{
34public:
35        HeightMapViewer();
36        ~HeightMapViewer();
37       
38        bool init(char* fileName);
39        bool run();
40
41private:               
42        void drawScene();
43        void updateView();
44       
45        WindowHandler windowhandler;
46        HeightMapTerrain terrain;       
47
48        bool wireframe;
49        bool mousedown;
50
51        Vector cameraPos;
52        Vector sightDirection;
53        Vector lookAt;
54        Vector upVector;
55       
56        // used for some movement calculations
57        Vector perpendicularToSight;
58        Quaternion rotator;
59};
Note: See TracBrowser for help on using the repository browser.