#include <OGREInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| DIOGREMesh * | GetMesh (void) |
| Gets the Mesh that this Entity is based on. | |
| DIOGRESubEntity * | GetSubEntity (unsigned int index) |
| Gets a pointer to a SubEntity, ie a part of an Entity. | |
| DIOGRESubEntity * | GetSubEntity (const char *name) |
| Gets a pointer to a SubEntity by name. | |
| unsigned int | GetNumSubEntities (void) |
| Retrieves the number of SubEntity objects making up this entity. | |
| DIOGREEntity * | Clone (const char *newName) |
| Clones this entity and returns a pointer to the clone. | |
| void | SetMaterialName (const char *name) |
| Sets the material to use for the whole of this entity. | |
| DIOGREAnimationState * | GetAnimationState (const char *name) |
| For entities based on animated meshes, gets the AnimationState object for a single animation. | |
| void | SetDisplaySkeleton (bool display) |
| For entities based on animated meshes, gets the AnimationState objects for all animations. | |
| bool | GetDisplaySkeleton (void) |
| Returns whether or not the entity is currently displaying its skeleton. | |
| void | SetMeshLodBias (float factor) |
| Sets a level-of-detail bias for the mesh detail of this entity. | |
| void | SetMeshLodBias (float factor, unsigned short maxDetailIndex, unsigned short minDetailIndex) |
| void | SetMaterialLodBias (float factor) |
| Sets a level-of-detail bias for the material detail of this entity. | |
| void | SetMaterialLodBias (float factor, unsigned short maxDetailIndex, unsigned short minDetailIndex) |
| void | SetPolygonModeOverrideable (bool renderDetailOverrideable) |
| Sets whether the rendering detail of this entire entity may be overridden by the camera detail settings. | |
| DIOGRETagPoint * | AttachObjectToBone (const char *boneName, DIOGREMovableObject *pMovable) |
| Attaches another object to a certain bone of the skeleton which this entity uses. | |
| DIOGRETagPoint * | AttachObjectToBone (const char *boneName, DIOGREMovableObject *pMovable, in_Quaternionf *offsetOrientation, in_Vector3f *offsetPosition) |
| DIOGREMovableObject * | DetachObjectFromBone (const char *movableName) |
| detach a MovableObject previously attached using attachObjectToBone | |
| void | DetachObjectFromBone (DIOGREMovableObject *obj) |
| Detaches an object by pointer. | |
| void | DetachAllObjectsFromBone (void) |
| Detach all MovableObjects previously attached using attachObjectToBone. | |
| void | SetNormaliseNormals (bool normalise) |
| Gets an iterator to the list of objects attached to bones on this entity. | |
| bool | GetNormaliseNormals (void) |
| Returns true if this entity has auto-normalisation of normals set. | |
| bool | HasSkeleton (void) |
| Returns whether or not this entity is skeletally animated. | |
| DIOGRESkeletonInstance * | GetSkeleton (void) |
| Get this Entity's personal skeleton instance. | |
| bool | IsHardwareAnimationEnabled (void) |
| Returns whether or not hardware skinning is enabled. | |
| int | GetSoftwareAnimationRequests (void) |
| Returns the number of requests that have been made for software skinning. | |
| int | GetSoftwareAnimationNormalsRequests (void) |
| Returns the number of requests that have been made for software skinning of normals. | |
| void | AddSoftwareAnimationRequest (bool normalsAlso) |
| Add a request for software skinning. | |
| void | RemoveSoftwareAnimationRequest (bool normalsAlso) |
| Removes a request for software skinning. | |
| void | ShareSkeletonInstanceWith (DIOGREEntity *entity) |
| Shares the SkeletonInstance with the supplied entity. | |
| void | StopSharingSkeletonInstance (void) |
| Stops sharing the SkeletonInstance with other entities. | |
| bool | SharesSkeletonInstance () |
| Returns whether this entity shares it's SkeltonInstance with other entity instances. | |
| void | RefreshAvailableAnimationState (void) |
| Returns a pointer to the set of entities which share a SkeletonInstance. | |
| DIOGREMesh* DigitalSpaces::DIOGREEntity::GetMesh | ( | void | ) |
Gets the Mesh that this Entity is based on.
| DIOGRESubEntity* DigitalSpaces::DIOGREEntity::GetSubEntity | ( | unsigned int | index | ) |
Gets a pointer to a SubEntity, ie a part of an Entity.
| DIOGRESubEntity* DigitalSpaces::DIOGREEntity::GetSubEntity | ( | const char * | name | ) |
Gets a pointer to a SubEntity by name.
| unsigned int DigitalSpaces::DIOGREEntity::GetNumSubEntities | ( | void | ) |
Retrieves the number of SubEntity objects making up this entity.
| DIOGREEntity* DigitalSpaces::DIOGREEntity::Clone | ( | const char * | newName | ) |
Clones this entity and returns a pointer to the clone.
| newName | Name for the new entity. |
| void DigitalSpaces::DIOGREEntity::SetMaterialName | ( | const char * | name | ) |
Sets the material to use for the whole of this entity.
| DIOGREAnimationState* DigitalSpaces::DIOGREEntity::GetAnimationState | ( | const char * | name | ) |
For entities based on animated meshes, gets the AnimationState object for a single animation.
| void DigitalSpaces::DIOGREEntity::SetDisplaySkeleton | ( | bool | display | ) |
For entities based on animated meshes, gets the AnimationState objects for all animations.
| bool DigitalSpaces::DIOGREEntity::GetDisplaySkeleton | ( | void | ) |
Returns whether or not the entity is currently displaying its skeleton.
| void DigitalSpaces::DIOGREEntity::SetMeshLodBias | ( | float | factor | ) |
Sets a level-of-detail bias for the mesh detail of this entity.
| factor | Proportional factor to apply to the distance at which LOD is changed. Higher values increase the distance at which higher LODs are displayed (2.0 is twice the normal distance, 0.5 is half). | |
| maxDetailIndex | The index of the maximum LOD this entity is allowed to use (lower indexes are higher detail: index 0 is the original full detail model). | |
| minDetailIndex | The index of the minimum LOD this entity is allowed to use (higher indexes are lower detail. Use something like 99 if you want unlimited LODs (the actual LOD will be limited by the number in the Mesh) |
| void DigitalSpaces::DIOGREEntity::SetMeshLodBias | ( | float | factor, | |
| unsigned short | maxDetailIndex, | |||
| unsigned short | minDetailIndex | |||
| ) |
| void DigitalSpaces::DIOGREEntity::SetMaterialLodBias | ( | float | factor | ) |
Sets a level-of-detail bias for the material detail of this entity.
| factor | Proportional factor to apply to the distance at which LOD is changed. Higher values increase the distance at which higher LODs are displayed (2.0 is twice the normal distance, 0.5 is half). | |
| maxDetailIndex | The index of the maximum LOD this entity is allowed to use (lower indexes are higher detail: index 0 is the original full detail model). | |
| minDetailIndex | The index of the minimum LOD this entity is allowed to use (higher indexes are lower detail. Use something like 99 if you want unlimited LODs (the actual LOD will be limited by the number of lod indexes used in the Material) |
| void DigitalSpaces::DIOGREEntity::SetMaterialLodBias | ( | float | factor, | |
| unsigned short | maxDetailIndex, | |||
| unsigned short | minDetailIndex | |||
| ) |
| void DigitalSpaces::DIOGREEntity::SetPolygonModeOverrideable | ( | bool | renderDetailOverrideable | ) |
Sets whether the rendering detail of this entire entity may be overridden by the camera detail settings.
| DIOGRETagPoint* DigitalSpaces::DIOGREEntity::AttachObjectToBone | ( | const char * | boneName, | |
| DIOGREMovableObject * | pMovable | |||
| ) |
Attaches another object to a certain bone of the skeleton which this entity uses.
| boneName | The name of the bone (in the skeleton) to attach this object | |
| pMovable | Pointer to the object to attach | |
| offsetOrientation | An adjustment to the orientation of the attached object, relative to the bone. | |
| offsetPosition | An adjustment to the position of the attached object, relative to the bone. |
| DIOGRETagPoint* DigitalSpaces::DIOGREEntity::AttachObjectToBone | ( | const char * | boneName, | |
| DIOGREMovableObject * | pMovable, | |||
| in_Quaternionf * | offsetOrientation, | |||
| in_Vector3f * | offsetPosition | |||
| ) |
| DIOGREMovableObject* DigitalSpaces::DIOGREEntity::DetachObjectFromBone | ( | const char * | movableName | ) |
detach a MovableObject previously attached using attachObjectToBone
| void DigitalSpaces::DIOGREEntity::DetachObjectFromBone | ( | DIOGREMovableObject * | obj | ) |
Detaches an object by pointer.
| void DigitalSpaces::DIOGREEntity::DetachAllObjectsFromBone | ( | void | ) |
Detach all MovableObjects previously attached using attachObjectToBone.
| void DigitalSpaces::DIOGREEntity::SetNormaliseNormals | ( | bool | normalise | ) |
Gets an iterator to the list of objects attached to bones on this entity.
If set to true, this forces normals of this entity to be normalised dynamically by the hardware.
| bool DigitalSpaces::DIOGREEntity::GetNormaliseNormals | ( | void | ) |
Returns true if this entity has auto-normalisation of normals set.
| bool DigitalSpaces::DIOGREEntity::HasSkeleton | ( | void | ) |
Returns whether or not this entity is skeletally animated.
| DIOGRESkeletonInstance* DigitalSpaces::DIOGREEntity::GetSkeleton | ( | void | ) |
Get this Entity's personal skeleton instance.
| bool DigitalSpaces::DIOGREEntity::IsHardwareAnimationEnabled | ( | void | ) |
Returns whether or not hardware skinning is enabled.
| int DigitalSpaces::DIOGREEntity::GetSoftwareAnimationRequests | ( | void | ) |
Returns the number of requests that have been made for software skinning.
| int DigitalSpaces::DIOGREEntity::GetSoftwareAnimationNormalsRequests | ( | void | ) |
Returns the number of requests that have been made for software skinning of normals.
| void DigitalSpaces::DIOGREEntity::AddSoftwareAnimationRequest | ( | bool | normalsAlso | ) |
Add a request for software skinning.
| void DigitalSpaces::DIOGREEntity::RemoveSoftwareAnimationRequest | ( | bool | normalsAlso | ) |
Removes a request for software skinning.
| void DigitalSpaces::DIOGREEntity::ShareSkeletonInstanceWith | ( | DIOGREEntity * | entity | ) |
Shares the SkeletonInstance with the supplied entity.
Note that in order for this to work, both entities must have the same Skeleton.
| void DigitalSpaces::DIOGREEntity::StopSharingSkeletonInstance | ( | void | ) |
Stops sharing the SkeletonInstance with other entities.
| bool DigitalSpaces::DIOGREEntity::SharesSkeletonInstance | ( | ) |
Returns whether this entity shares it's SkeltonInstance with other entity instances.
| void DigitalSpaces::DIOGREEntity::RefreshAvailableAnimationState | ( | void | ) |
Returns a pointer to the set of entities which share a SkeletonInstance.
If this instance does not share it's SkeletonInstance with other instances NULL will be returned Updates the internal animation state set to include the latest available animations from the attached skeleton.
1.5.6