Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 2, 2005, 1:04:00 PM (21 years ago)
Author:
bensch
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/nico/src/importer/heightMapTerrain.h

    r3384 r3390  
    1111using namespace std;
    1212
     13#include "vector.h"
    1314#include "../stdincl.h"
    14 
    15 #include "vector.h"
    16 
    1715
    1816class HeightMapTerrain
     
    3533       
    3634        // array of display lists
    37         GLuint* displayLists;
     35        //GLuint* displayLists;
    3836
    3937private:
    4038        // returns the height value between 0 and 256 for a point (x,z) in the picture
    41         GLint heightValue(Uint8 x, Uint8 z);
    42                
     39        GLint getHeightValue(int x, int z);
     40       
     41        // makes a call to glNormal and glVertex for supplied x and z
     42        void call_glNormal_and_glVertex(int x,int z,int top,int left,int height);
     43
    4344        // holds the loaded pixels
    4445        SDL_Surface* bitmap;
    4546       
     47        // holds normal vector for every vertex
     48        Vector* normals;
     49};
    4650
    47        
    48 };
     51
Note: See TracChangeset for help on using the changeset viewer.