#ifndef _landscape_hh_ #define _landscape_hh_ #include "terrainblock.hh" #include #include #include #include #include "pathfind.hh" #include "textures.hh" class Landscape { int mapSizeX; int mapSizeZ; GLuint * viewMode; GLuint tex; int res; //move or capsla TerrainBlock * blocks[16] [16]; float lightpos[3]; float hMap[256] [256]; float fixedLight[256] [256] [3]; float lightMap[256] [256] [3]; float checkPath( float x, float z ); void calcLightMap(); void smooth(); public: void setLightPos( float, float, float ); void setTexture(); void addLight( float _x, float _z, float c1, float c2, float c3, float intensity ); const int getMapSizeX(); const int getMapSizeZ(); void toggleViewMode(); Landscape(); void draw(); void addRes(); void lowRes(); float getHeight( float x, float z ); float getHeightP( int x, int z ); float getLight( float x, float z ); void loadMap( std::string fName ); }; extern Landscape landscape; namespace LandCont { void toggleView(); void addRes(); void lowRes(); }; #endif