source: trunk/VUT/work/TestCullingTerrain/TerrainContentGenerator.h @ 104

Revision 104, 1.0 KB checked in by mattausch, 19 years ago (diff)
Line 
1#ifndef _TERRAINCONTENTGENERATOR_H__
2#define _TERRAINCONTENTGENERATOR_H__
3
4#include "SceneContentGenerator.h"
5#include <Ogre.h>
6
7namespace Ogre {
8
9/** Class which executes a simple ray query.
10*/
11class RayQueryExecutor
12{
13public:
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
20protected:
21        RaySceneQuery *mRaySceneQuery;
22};
23
24/** Class which fills a terrain with content in a random fashion
25*/
26class TerrainContentGenerator: public SceneContentGenerator
27{
28public:
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);
36       
37        RayQueryExecutor *GetRayQueryExecutor();
38
39protected:
40        RayQueryExecutor *mRayQueryExecutor;
41        Real mMaxHeight;
42};
43
44} // namespace Ogre
45#endif // _TERRAINCONTENTGENERATOR_H
Note: See TracBrowser for help on using the repository browser.