2014-10-20 17:09:45 +00:00
|
|
|
#ifndef TERRAIN_HH_INCLUDED
|
|
|
|
#define TERRAIN_HH_INCLUDED
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include "texture.hh"
|
2014-11-04 18:40:35 +00:00
|
|
|
#include <fstream>
|
|
|
|
//#include <winsock.h> //on Windows
|
|
|
|
#include <netinet/in.h> //on Unix
|
2014-10-20 17:09:45 +00:00
|
|
|
|
|
|
|
class Terrain {
|
|
|
|
public:
|
|
|
|
Terrain();
|
|
|
|
~Terrain();
|
|
|
|
void load();
|
|
|
|
void render();
|
|
|
|
private:
|
|
|
|
float friction;
|
|
|
|
Texture texture;
|
|
|
|
std::string filePath;
|
2014-11-04 18:40:35 +00:00
|
|
|
unsigned int** heightmap; //can be accessed like 'unsigned int[][]'
|
2014-10-20 17:09:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|