Changeset 161 for trunk/VUT/Ogre
- Timestamp:
- 07/08/05 17:34:05 (19 years ago)
- Location:
- trunk/VUT/Ogre
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/include/OgreTerrainContentGenerator.h
r135 r161 4 4 #include "OgreSceneContentGenerator.h" 5 5 //#include <Ogre.h> 6 7 #define MAX_HEIGHT 5000 // maximal possible height for object position 6 8 7 9 namespace Ogre { … … 23 25 24 26 /** 25 Class which randomly fills a terrain with objects. 27 Thsi class used to fill a terrain with content, 28 e.g., it randomly fills a terrain with objects of a specific type. 26 29 */ 27 30 class __declspec(dllexport) TerrainContentGenerator: public SceneContentGenerator … … 31 34 ~TerrainContentGenerator(); 32 35 33 /** 34 Generates objects and places it on the terrain. 36 /** Generates objects and places it on the terrain. 35 37 */ 36 38 SceneNode *GenerateSceneObject(const Vector3 &position, 37 39 const Vector3 &rotation, const String &objName); 38 /** 39 Generates objects and optionally places it on the terrain. 40 /** Generates objects and optionally places it on the terrain. 40 41 @param clampToTerrain if true, scene object is clamped to the terrain 41 42 */ … … 43 44 const Vector3 &rotation, const String &objName, const bool clampToTerrain); 44 45 45 /** offset which is added to objects when put into the terrain */ 46 /** The offset is added to objects when they are put into the terrain. 47 */ 46 48 void SetOffset(Real offset); 47 48 RayQueryExecutor *GetRayQueryExecutor();49 49 50 50 protected: -
trunk/VUT/Ogre/resources/VisibilityDemo.overlay
r160 r161 326 326 caption [F4] Start / End frame recording 327 327 } 328 element TextArea(Example/Visibility/Help/Animation): Example/Visibility/Templates/BasicText 329 { 330 left 5 331 width 180 332 height 30 333 caption [F9] Start / End animation 334 } 328 335 element TextArea(Example/Visibility/Help/Screenshots): Example/Visibility/Templates/BasicText 329 336 { -
trunk/VUT/Ogre/src/OgreTerrainContentGenerator.cpp
r135 r161 1 1 #include "OgreTerrainContentGenerator.h" 2 2 3 #define MAX_HEIGHT 5000 // maximal possible height4 3 5 4 namespace Ogre { … … 69 68 SceneNode *TerrainContentGenerator::GenerateSceneObject(const Vector3 &position, 70 69 const Vector3 &rotation, const String& objName, const bool clampToTerrain) 71 { 70 { 71 if (clampToTerrain) 72 return GenerateSceneObject(position, rotation, objName); 72 73 73 if (clampToTerrain) 74 { 75 return GenerateSceneObject(position, rotation, objName); 76 } 77 else 78 { 79 return SceneContentGenerator::GenerateSceneObject(position, rotation, objName); 80 } 74 return SceneContentGenerator::GenerateSceneObject(position, rotation, objName); 81 75 } 82 76 //----------------------------------------------------------------------- … … 103 97 } 104 98 //----------------------------------------------------------------------- 105 RayQueryExecutor *TerrainContentGenerator::GetRayQueryExecutor()106 {107 return mRayQueryExecutor;108 }109 //-----------------------------------------------------------------------110 99 void TerrainContentGenerator::SetOffset(Real offset) 111 100 {
Note: See TracChangeset
for help on using the changeset viewer.