#ifndef _terrainblock_hh_ #define _terrainblock_hh_ #include #include #include #include const int BLOCKSIZE = 16; class TerrainBlock{ int posX, posZ; GLuint * viewMode; int res; float hMap[BLOCKSIZE+1][BLOCKSIZE+1]; public: int getRes(); float* operator[](int n); void draw(); TerrainBlock(int,int,GLuint*); }; #endif