CSC3224_Computer_Games_Development / nclgl / HeightMap.h
HeightMap.h
Raw
#pragma  once
#include  <string>
#include  <iostream>
#include  <fstream>

#include "../nclgl/Mesh.h"

#define X 16.0f
#define Y 16.0f

#define  RAW_WIDTH     257
#define  RAW_HEIGHT    257

#define  HEIGHTMAP_X   X
#define  HEIGHTMAP_Z   Y
#define  HEIGHTMAP_Y   0.1f //change the height of the terrain - higer the value, the higher the terrain
#define  HEIGHTMAP_TEX_X  1.0f / X
#define  HEIGHTMAP_TEX_Z  1.0f / Y

class HeightMap : public Mesh {
public:
	HeightMap(std::string name);
	~HeightMap(void) {};
};