Files
CrystalPoint/HeightMap.h
2016-05-28 13:11:11 +02:00

28 lines
387 B
C++

#pragma once
#include "Vertex.h"
#include <string>
#include <vector>
#include <GL/freeglut.h>
class World;
class HeightMap
{
private:
int height;
int width;
GLuint imageIndex;
public:
HeightMap(const std::string &file, World* world);
~HeightMap();
void Draw();
float GetHeight(float x, float y);
void SetTexture(const std::string &file);
std::vector<Vertex> vertices;
};