#include <HeightMapLoader.h>
Inheritance diagram for HeightMapLoader:
Public Methods | |
| HeightMapLoader (string filename, int width, int height) | |
| virtual | ~HeightMapLoader () |
| virtual void | load () |
| int | getHeight (int x, int z) |
| virtual int | getHeight2 (int x, int z) |
| int | getScaleSize () |
| int | getWidthDimension () |
| int | getHeightDimension () |
Protected Methods | |
| void | buildTriangles () |
| void | buildSquares () |
| void | decimate () |
| void | decimate2 () |
| void | decimate3 () |
| void | decimateRepeat () |
| void | triangulate () |
| vector< int > | findIndiciesAtVerticie (Vector3 v) |
Protected Attributes | |
| int | _width |
| int | _height |
| int * | _data |
| int | _scaleSize |
| int | _scaleHeight |
| vector< Vector3 > | _facesTmp |
author: Line72: dillavou@uab.edu
|
||||||||||||||||
|
|
|
|
|
|
|
build everything in squares for decimation |
|
|
build the triangle strips normals, and uv coords |
|
|
Simplifies the terrain |
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
get the height at a certain point |
|
||||||||||||
|
get the height at a certain point with the scale size calculated in |
|
|
|
|
|
|
|
|
|
|
|
Load the height map Implements FileLoader. |
|
|
convert the squares into triangles |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.18