#include <LandscapeScene.h>
Inheritance diagram for LandscapeScene:
Public Member Functions | |
void | Init () |
Private Member Functions | |
GraphicalObject * | GeneratePart (float *height_field, int min_x, int max_x, int min_y, int max_y, int total_x, int total_y, float stride) |
GroupObject * | ReplicatePatches (GraphicalObject *one_patch, float size, int min_x, int max_x, int min_y, int max_y) |
void | RandomRotate (GraphicalObject *patch, float x_offset, float y_offset, float size) |
Private Attributes | |
float * | height_field |
Scene with a landscape generated by perlin noise. The landscape consists of a set of patches with size 64x64. These patches are constructed from a heightfield that consists of 513x513 values. Additionally, several instances of the same height field are repeated along the x and y direction to make the are even bigger (those components are rotated randomly in order to make this repetition less appearant to the eye).
Definition at line 17 of file LandscapeScene.h.
|
Builds the scene. Reimplemented from Scene. Definition at line 8 of file LandscapeScene.cpp. |
|
The height field of the landscape Definition at line 27 of file LandscapeScene.h. |