Handles HRC files.
More...
#include <VGearsHRCFile.h>
Handles HRC files.
HRC files describe bone hierarchy in an skeleton.
◆ BoneList
◆ RSDNameList
◆ HRCFile()
VGears::HRCFile::HRCFile |
( |
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. |
◆ ~HRCFile()
VGears::HRCFile::~HRCFile |
( |
| ) |
|
|
virtual |
◆ CalculateSize() [1/2]
size_t VGears::HRCFile::CalculateSize |
( |
void |
| ) |
const |
|
protectedvirtual |
Calculates the size of the skeleton.
- Returns
- The size of the skeleton.
- Todo:
- Units?
◆ CalculateSize() [2/2]
size_t VGears::HRCFile::CalculateSize |
( |
const Bone & |
bone | ) |
const |
|
protectedvirtual |
Calculates the size of a bone.
- Parameters
-
[in] | bone | The bone whose size to calculate. |
- Returns
- The size of the bone.
- Todo:
- Units?
◆ GetBones() [1/2]
virtual BoneList & VGears::HRCFile::GetBones |
( |
| ) |
|
|
inlinevirtual |
Retrieves the list of bones in the skeleton.
- Returns
- The list of bones.
◆ GetBones() [2/2]
virtual const BoneList & VGears::HRCFile::GetBones |
( |
| ) |
const |
|
inlinevirtual |
Retrieves the list of bones in the skeleton.
- Returns
- The list of bones.
◆ GetMeshFileName()
String VGears::HRCFile::GetMeshFileName |
( |
void |
| ) |
const |
|
virtual |
Retrieves the file name of the mesh assigned to the skeleton.
- Returns
- The mesh file name.
◆ GetSkeleton()
Ogre::SkeletonPtr VGears::HRCFile::GetSkeleton |
( |
void |
| ) |
const |
|
virtual |
Retrieves the skeleton.
- Returns
- The skeleton.
◆ GetSkeletonFileName()
String VGears::HRCFile::GetSkeletonFileName |
( |
void |
| ) |
const |
|
virtual |
Retrieves the skeleton file name.
- Returns
- The skeleton file name.
◆ GetSkeletonName()
virtual const String & VGears::HRCFile::GetSkeletonName |
( |
| ) |
const |
|
inlinevirtual |
Retrieves the skeleton name.
- Returns
- The skeleton name.
◆ loadImpl()
void VGears::HRCFile::loadImpl |
( |
void |
| ) |
|
|
finaloverrideprotectedvirtual |
◆ SetSkeletonName()
void VGears::HRCFile::SetSkeletonName |
( |
const String & |
name | ) |
|
|
virtual |
Sets a name for the skelenton.
- Parameters
-
[in] | name | The name for the skeleton. |
◆ unloadImpl()
void VGears::HRCFile::unloadImpl |
( |
void |
| ) |
|
|
finaloverrideprotectedvirtual |
◆ bones_
The bones in the skeleton.
◆ DOWN_SCALER
const float VGears::HRCFile::DOWN_SCALER = 1.0f |
|
static |
◆ mesh_
Ogre::MeshPtr VGears::HRCFile::mesh_ |
|
private |
The mesh assigned to the skeleton.
◆ mesh_loader_
◆ RESOURCE_TYPE
const String VGears::HRCFile::RESOURCE_TYPE |
|
static |
◆ skeleton_
Ogre::SkeletonPtr VGears::HRCFile::skeleton_ |
|
private |
◆ skeleton_loader_
◆ skeleton_name_
String VGears::HRCFile::skeleton_name_ |
|
private |
The documentation for this class was generated from the following files: