Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3834 was 3393, checked in by bensch, 20 years ago

orxonox/branches/nico: lighting enabled, and working again

File size: 945 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 initLighting(void);
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        bool smoothShading;
49
50        Vector cameraPos;
51        Vector sightDirection;
52        Vector lookAt;
53        Vector upVector;
54       
55        // used for some movement calculations
56        Vector perpendicularToSight;
57        Quaternion rotator;
58};
59
60Vector perpendicular (Vector perpendic);
Note: See TracBrowser for help on using the repository browser.