9 #ifndef GlobeEngine_Heightfield_h
10 #define GlobeEngine_Heightfield_h
13 #include "OpenGL_Includes.h"
28 void create(
int _verticesPerRow,
int _verticesPerColumn,
float _distBetweenVertices,
float* &_heights);
29 void create(
int _verticesPerRow,
int _verticesPerColumn,
float _distBetweenVertices,
float* &_heights,
ColorisationTable* _colortable);
32 void draw(std::shared_ptr<ge::Camera> _cam, GLuint _texHandle);
39 void createRenderingStructures();
42 void createDiscretizedColorMap(GLfloat* &colorBuffer,
int indexInBuffer,
int discretizationLevels, vmml::Vector3f* &colors, GLfloat maxValue, GLfloat minValue);
43 void assignColorFromMap();
49 int verticesPerColumn;
53 int numberOfTriangleStrip;
56 int indexCountperStrip;
67 GLuint vboVertexObject;
68 GLuint vboIndexObject;
69 GLuint vboNormalObject;
70 GLuint vboTexCoordObject;
Definition: DrawableComponent.h:25
float getMinHeight()
Definition: Heightfield.cpp:326
void update()
Definition: Heightfield.cpp:320
void create()
Definition: Heightfield.cpp:21
Definition: AvalancheTrainingSimulationEngine.h:39
Definition: ColorisationTable.h:31
~Heightfield()
Definition: Heightfield.h:23
void draw(std::shared_ptr< ge::Camera > _cam, GLuint _texHandle)
Definition: Heightfield.cpp:250
float getMinMaxHeight()
Definition: Heightfield.cpp:336
Heightfield()
Definition: Heightfield.h:22
Definition: VBOVertex.h:115
void destroy()
Definition: Heightfield.cpp:16
float getMaxHeight()
Definition: Heightfield.cpp:331
Definition: Heightfield.h:19
void clear()
Definition: Heightfield.cpp:8