Ogre2SubMeshStoreFactory Class Reference
Ogre2.x implementation of a submesh store factory class. More...
#include <Ogre2MeshFactory.hh>
Public Member Functions | |
| Ogre2SubMeshStoreFactory (Ogre2ScenePtr _scene, Ogre::Item *_item) | |
| Constructor. | |
| virtual | ~Ogre2SubMeshStoreFactory () |
| Destructor. | |
| virtual Ogre2SubMeshStorePtr | Create () |
| Create the submeshes. | |
Protected Member Functions | |
| virtual void | CreateNameList () |
| Create a list of names and the corresponding submesh object. | |
| virtual Ogre2SubMeshPtr | CreateSubMesh (unsigned int _index) |
| Helper function to create submesh at the given index. | |
| virtual void | PopulateDefaultNames () |
| Populate the name list with default generated names. | |
| virtual void | PopulateGivenNames () |
| Populate the name list with names associated with each ogre subitem. | |
Protected Attributes | |
| std::vector< std::string > | names |
| A list of names associated with each ogre subitem / submesh. | |
| Ogre::Item * | ogreItem = nullptr |
| Pointer to the parent ogre item. | |
| Ogre2ScenePtr | scene |
| Pointer to the scene object. | |
Detailed Description
Ogre2.x implementation of a submesh store factory class.
Constructor & Destructor Documentation
◆ Ogre2SubMeshStoreFactory()
| Ogre2SubMeshStoreFactory | ( | Ogre2ScenePtr | _scene, |
| Ogre::Item * | _item | ||
| ) |
Constructor.
- Parameters
-
[in] _scene Pointer to the scene object [in] _item Parent ogre item
◆ ~Ogre2SubMeshStoreFactory()
|
virtual |
Destructor.
Member Function Documentation
◆ Create()
|
virtual |
Create the submeshes.
- Returns
- A store containing all the submeshes
◆ CreateNameList()
|
protectedvirtual |
Create a list of names and the corresponding submesh object.
◆ CreateSubMesh()
|
protectedvirtual |
Helper function to create submesh at the given index.
- Parameters
-
[in] _index Index of the ogre subitem. The subitem is then used to create the submesh.
◆ PopulateDefaultNames()
|
protectedvirtual |
Populate the name list with default generated names.
◆ PopulateGivenNames()
|
protectedvirtual |
Populate the name list with names associated with each ogre subitem.
Member Data Documentation
◆ names
|
protected |
A list of names associated with each ogre subitem / submesh.
◆ ogreItem
|
protected |
Pointer to the parent ogre item.
◆ scene
|
protected |
Pointer to the scene object.
The documentation for this class was generated from the following file: