Changeset 160 for trunk/VUT/Ogre/include


Ignore:
Timestamp:
07/08/05 01:53:01 (19 years ago)
Author:
mattausch
Message:

added animation

Location:
trunk/VUT/Ogre/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/include/OgrePlatformOcclusionQuery.h

    r87 r160  
    2121 
    2222        virtual bool GetQueryResult(unsigned int &queryResult, 
    23                 const bool waitForResult) const; 
     23        const bool waitForResult) const; 
    2424        virtual void BeginQuery(); 
    2525        virtual void EndQuery(); 
  • trunk/VUT/Ogre/include/OgreSceneContentGenerator.h

    r130 r160  
    77 
    88namespace Ogre { 
     9 
     10typedef std::vector<SceneNode *> SceneNodeList; 
     11typedef std::vector<Entity *> EntityList; 
    912 
    1013/** Class which fills a scene with content in a random fashion. 
     
    2023        */ 
    2124        void GenerateScene(int numObjects, const String &objName); 
     25 
    2226        /** Generates a new object in the scene using ray scene queries  
    2327                and inserts it into thr scene hierarchy. 
     
    3135                const Vector3 &rotation, const String &objName); 
    3236 
     37        /** Minimum angle for the random orientation. 
     38        */ 
    3339        void SetMinAngle(Vector3 minAngle); 
     40         
     41        /** Maximum angle for the random orientation. 
     42        */ 
    3443        void SetMaxAngle(Vector3 maxAngle); 
     44         
     45        /** Minimum possible random position. 
     46        */ 
    3547        void SetMinPos(Vector3 minPos); 
     48        /** Maximum possible random position. 
     49        */ 
    3650        void SetMaxPos(Vector3 maxPos); 
     51        /** Scale factor applied to each generated object. 
     52        */ 
    3753        void SetScale(Vector3 scale); 
    3854         
    39         /** The number of created objects */ 
     55        /** The number of created objects. 
     56        */ 
    4057        int GetObjectCount(); 
    4158 
    42         /** Writes scene nodes to file */ 
     59        /** Writes scene nodes to file. 
     60        */ 
    4361        bool WriteObjects(const std::string &filename); 
    4462 
    45         /** Loads scene nodes from file */ 
     63        /** Loads scene nodes from file. 
     64        */ 
    4665        bool LoadObjects(const std::string &filename); 
     66 
    4767        /** Generates a scene object with the specified parameters 
    4868                @param position the position of the scene object 
     
    5373        SceneNode *GenerateSceneObject(const Vector3 &position,  
    5474                const Quaternion &orientation, const String &objName); 
     75 
     76        /** Gets pointer to list of generated scene nodes. 
     77        */ 
     78        SceneNodeList *GetGeneratedSceneNodes(); 
     79         
     80        /** Gets pointer to list of entities. 
     81        */ 
     82        EntityList *GetGeneratedEntities(); 
     83 
     84        /** Removes generated object from scene graph. 
     85        */ 
     86        void RemoveGeneratedObjects(); 
    5587 
    5688protected: 
     
    6496        SceneManager *mSceneMgr; 
    6597         
    66         std::vector<SceneNode *> mSceneObjects; 
     98        SceneNodeList mSceneNodes; 
     99        EntityList mEntities; 
    67100}; 
    68101 
Note: See TracChangeset for help on using the changeset viewer.