Saxum/terrain.hh
2014-11-04 19:40:35 +01:00

24 lines
472 B
C++

#ifndef TERRAIN_HH_INCLUDED
#define TERRAIN_HH_INCLUDED
#include <string>
#include "texture.hh"
#include <fstream>
//#include <winsock.h> //on Windows
#include <netinet/in.h> //on Unix
class Terrain {
public:
Terrain();
~Terrain();
void load();
void render();
private:
float friction;
Texture texture;
std::string filePath;
unsigned int** heightmap; //can be accessed like 'unsigned int[][]'
};
#endif