#include <Terrain.h>
Inheritance diagram for GpuThesis::Terrain:
Public Member Functions | |
Terrain (unsigned int width, unsigned int height, const std::string &texture, float amplitude, float frequency, float textureScale, float scale, bool useVBO=true) | |
void | setMaterial (const Material &material) |
float | getHeight (float x, float y) const |
GLuint | getTexture () const |
void | transform () |
void | render (unsigned int meshNumber=0) |
bool | isLit () |
unsigned int | getMeshCount () |
const Material & | getMaterial (unsigned int meshNumber) |
void | setPosition (const Math::Vector3d &position) |
void | setRotationAxis (const Math::Vector3d &rotationAxis) |
void | setRotationAngle (float angle) |
|
Initialize the terrain.
|
|
Get the height of the terrain at the given coordinates.
|
|
Get the material of the given mesh.
Implements GpuThesis::SceneObject. |
|
Get the mesh count of the terrain.
Implements GpuThesis::SceneObject. |
|
Get the texture used by the terrain.
|
|
Check whether the terrain should be lit.
Implements GpuThesis::SceneObject. |
|
Render the terrain. Implements GpuThesis::SceneObject. |
|
Set the material.
|
|
Set the terrain position.
|
|
Set the rotation angle.
|
|
Set the rotation axis.
|
|
Transform the terrain. Implements GpuThesis::SceneObject. |