![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
Handles model list files. More...
#include <FF7ModelListFile.h>
Classes | |
struct | AnimationDescription |
An animation description. More... | |
struct | ModelDescription |
A model. More... | |
Public Types | |
enum | ModelType { PLAYER = 0 , NPC = 1 , UNKNOWN } |
Types of models. More... | |
typedef std::vector< AnimationDescription > | AnimationList |
typedef std::vector< ModelDescription > | ModelList |
Public Member Functions | |
ModelListFile (Ogre::ResourceManager *creator, const String &name, Ogre::ResourceHandle handle, const String &group, bool is_manual=false, Ogre::ManualResourceLoader *loader=NULL) | |
Constructor. More... | |
virtual | ~ModelListFile () |
Destructor. More... | |
virtual uint16 | GetScale () const |
Retrieves the scale for the models. More... | |
virtual void | SetScale (uint16 scale) |
Sets the scale for the models. More... | |
virtual ModelList & | GetModels () |
Retrieves the model list. 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... | |
Static Public Attributes | |
static const String | RESOURCE_TYPE |
The type of resource. More... | |
Protected Member Functions | |
virtual void | loadImpl () override |
Loads the file. More... | |
virtual void | unloadImpl () override |
Unloads the file. More... | |
virtual size_t | calculateSize (void) const |
Calculates the size of the palette. More... | |
![]() | |
virtual Ogre::DataStreamPtr | openResource () |
Opens the resource. More... | |
Private Attributes | |
uint16 | scale_ |
The models scale. More... | |
ModelList | models_ |
The list of models. More... | |
Handles model list files.
typedef std::vector<AnimationDescription> VGears::ModelListFile::AnimationList |
typedef std::vector<ModelDescription> VGears::ModelListFile::ModelList |
VGears::ModelListFile::ModelListFile | ( | Ogre::ResourceManager * | creator, |
const String & | name, | ||
Ogre::ResourceHandle | handle, | ||
const String & | group, | ||
bool | is_manual = false , |
||
Ogre::ManualResourceLoader * | loader = NULL |
||
) |
Constructor.
[in] | creator | Pointer to the ResourceManager that is this resource. |
[in] | name | The unique name of the resource. |
[in] | handle |
[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. |
|
virtual |
Destructor.
|
protectedvirtual |
|
virtual |
Retrieves the model list.
|
virtual |
Retrieves the scale for the models.
|
overrideprotectedvirtual |
Loads the file.
|
virtual |
Sets the scale for the models.
[in] | scale | The scale. |
|
overrideprotectedvirtual |
Unloads the file.
|
private |
The list of models.
|
static |
The type of resource.
|
private |
The models scale.