Saxum/terrain.hh

24 lines
472 B
C++
Raw Normal View History

2014-10-20 17:09:45 +00:00
#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
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;
unsigned int** heightmap; //can be accessed like 'unsigned int[][]'
2014-10-20 17:09:45 +00:00
};
#endif