LandscapeScene.h

00001 #ifndef LANDSCAPE_SCENE_
00002 #define LANDSCAPE_SCENE_
00003 
00004 #include "Scene.h"
00005 #include "Geometry.h"
00006 #include "GroupObject.h"
00007 
00017 class LandscapeScene: public Scene
00018 {
00019 public:
00023         void Init ();
00024 
00025 private:
00027         float * height_field;
00028 
00029         /*
00030          * Generates a part of the landscape.
00031          */
00032         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);
00033 
00034         /*
00035          * Replicates one patch of the landscape
00036          */
00037         GroupObject * ReplicatePatches (GraphicalObject * one_patch, float size, int min_x, int max_x, int min_y, int max_y);
00038 
00039         /*
00040          * Utility routine.
00041          */
00042         void RandomRotate (GraphicalObject * patch, float x_offset, float y_offset, float size);
00043 
00044 };
00045 
00046 #endif

Generated on Sun Jul 2 13:20:39 2006 for Demo by  doxygen 1.4.6-NO