Revision 85,
1022 bytes
checked in by mattausch, 20 years ago
(diff) |
corrected bug so chc is much faster than stop and wait
|
Rev | Line | |
---|
[81] | 1 | #ifndef _TERRAINCONTENTGENERATOR_H__
|
---|
| 2 | #define _TERRAINCONTENTGENERATOR_H__
|
---|
| 3 |
|
---|
| 4 | #include "SceneContentGenerator.h"
|
---|
| 5 | #include <Ogre.h>
|
---|
| 6 |
|
---|
| 7 | namespace Ogre {
|
---|
| 8 |
|
---|
| 9 | /** Class which executes a simple ray query.
|
---|
| 10 | */
|
---|
| 11 | class RayQueryExecutor
|
---|
| 12 | {
|
---|
| 13 | public:
|
---|
| 14 | RayQueryExecutor(SceneManager *sm);
|
---|
| 15 | ~RayQueryExecutor();
|
---|
| 16 |
|
---|
| 17 | bool executeRayQuery(Vector3 *result, const Vector3 &pos, const Vector3 &dir);
|
---|
| 18 | bool RayQueryExecutor::executeRayQuery( Vector3 *result, const Ray &ray);
|
---|
| 19 |
|
---|
| 20 | protected:
|
---|
| 21 | RaySceneQuery *mRaySceneQuery;
|
---|
| 22 | };
|
---|
| 23 |
|
---|
| 24 | /** Class which fills a terrain with content in a random fashion
|
---|
| 25 | */
|
---|
| 26 | class TerrainContentGenerator: public SceneContentGenerator
|
---|
| 27 | {
|
---|
| 28 | public:
|
---|
| 29 | TerrainContentGenerator(SceneManager *sm);
|
---|
| 30 | ~TerrainContentGenerator();
|
---|
| 31 |
|
---|
| 32 | SceneNode *GenerateSceneObject(const Vector3 &position,
|
---|
| 33 | const Vector3 &rotation, const String &objName);
|
---|
| 34 |
|
---|
| 35 | void SetMaxHeight(Real maxHeight);
|
---|
[85] | 36 |
|
---|
[81] | 37 | protected:
|
---|
| 38 | RayQueryExecutor *mRayQueryExecutor;
|
---|
| 39 | Real mMaxHeight;
|
---|
| 40 | };
|
---|
| 41 |
|
---|
| 42 | } // namespace Ogre
|
---|
| 43 | #endif // _TERRAINCONTENTGENERATOR_H |
---|
Note: See
TracBrowser
for help on using the repository browser.