Handles walkmesh files.
More...
#include <VGearsWalkmeshFile.h>
|
| WalkmeshFile (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=NULL) |
| Constructor. More...
|
|
virtual | ~WalkmeshFile () |
| Destructor. More...
|
|
virtual TriangleList & | GetTriangles () |
| Retrieves the list of triangles. More...
|
|
| Resource (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool manual, Ogre::ManualResourceLoader *loader) |
| Constructor. More...
|
|
virtual | ~Resource ()=default |
| Destructor. More...
|
|
◆ Triangle
◆ TriangleList
◆ WalkmeshFile()
VGears::WalkmeshFile::WalkmeshFile |
( |
Ogre::ResourceManager * |
creator, |
|
|
const String & |
name, |
|
|
Ogre::ResourceHandle |
handle, |
|
|
const String & |
group, |
|
|
bool |
is_manual = false , |
|
|
Ogre::ManualResourceLoader * |
loader = NULL |
|
) |
| |
Constructor.
- Parameters
-
[in] | creator | Pointer to the ResourceManager that is creating this resource. |
[in] | name | The unique name of the resource. |
[in] | handle | |
- Todo:
- Understand and document.
- Parameters
-
[in] | group | The name of the resource group to which this resource belong. |
[in] | is_manual | True if the resource is manually loaded, false otherwise. |
[in] | loader | Pointer to a ManualResourceLoader implementation which will be called when the Resource wishes to load (should be supplied if is_manual is set to true). It can be null, but the Resource will never be able to reload if anything ever causes it to unload. Therefore provision of a proper ManualResourceLoader instance is strongly recommended. |
◆ ~WalkmeshFile()
VGears::WalkmeshFile::~WalkmeshFile |
( |
| ) |
|
|
virtual |
◆ calculateSize()
size_t VGears::WalkmeshFile::calculateSize |
( |
void |
| ) |
const |
|
protectedvirtual |
Calculates the size of the palette.
- Returns
- The size of the palette.
- Todo:
- Units?
◆ GetTriangles()
Retrieves the list of triangles.
◆ loadImpl()
void VGears::WalkmeshFile::loadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ unloadImpl()
void VGears::WalkmeshFile::unloadImpl |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
◆ RESOURCE_TYPE
const String VGears::WalkmeshFile::RESOURCE_TYPE |
|
static |
◆ triangles_
The documentation for this class was generated from the following files: