BambooIsland: SceneObject_Terrain Class Reference

BambooIsland Abgabe 2

- Main Page
- Related Pages
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions

# SceneObject_Terrain Class Reference

A SceneObject which draws a terrain from a heightmap (image file) More...

`#include <SceneObject_Terrain.h>`

Inheritance diagram for SceneObject_Terrain:

List of all members.

## Public Member Functions

| SceneObject_Terrain ()
| The constructor.
| ~SceneObject_Terrain ()
| The destructor.

## Detailed Description

A SceneObject which draws a terrain from a heightmap (image file)

This SceneObject renders a terrain. Therefore, it uses an image file and interprets the red channel as heights (127 = height 0), and the green and blue channel gives the opacity of the two detail textures. Further, the inverse alpha value represents the opacity of the third detail texture.

This class uses the vertex shader to set the height of the vertices.

TODO: This class use some dirty hacks. It must not have children (but it is currently allowed due the inheritance of SceneObject) and does not work together with the used reflection-mechanism, therefore it enforces the use of its own reflection-shader even if the active shader is locked to another shader (it unlocks it and restores+locks it again after doing the own rendering stuff)

Definition at line 28 of file SceneObject_Terrain.h.

The documentation for this class was generated from the following files:

- C:/Users/easterbunny/Desktop/Echtzeitgraphik-LU/trunk/src/SceneObject_Terrain.h
- C:/Users/easterbunny/Desktop/Echtzeitgraphik-LU/trunk/src/SceneObject_Terrain.cpp

All Classes Functions Variables Enumerations Enumerator