Nebula
|
#include <characternode.h>
Inherits Models::TransformNode.
Public Member Functions | |
CharacterNode () | |
constructor | |
virtual | ~CharacterNode () |
destructor | |
void | OnResourcesLoaded () |
called when resources have loaded | |
bool | Load (const Util::FourCC &fourcc, const Util::StringAtom &tag, const Ptr< IO::BinaryReader > &reader, bool immediate) override |
parse data tag (called by loader code) | |
void | Discard () override |
discard node | |
const Resources::ResourceName & | GetAnimResource () const |
get the owned character object | |
const Resources::ResourceId | GetAnimationResourceId () const |
get the character's animation resource | |
bool | GetImplicitHierarchyActivation () const override |
character nodes should not create the hierarchy implicitly | |
Public Member Functions inherited from Models::TransformNode | |
TransformNode () | |
constructor | |
virtual | ~TransformNode () |
destructor | |
void | GetLODDistances (float &minDistance, float &maxDistance) |
Get LOD distances. | |
Public Member Functions inherited from Models::ModelNode | |
ModelNode () | |
constructor | |
virtual | ~ModelNode () |
destructor | |
const Util::Array< ModelNode * > & | GetChildren () const |
return constant reference to children | |
const NodeType | GetType () const |
get type of node | |
const NodeBits | GetBits () const |
get feature bits of node | |
const Util::StringAtom & | GetName () const |
return name | |
const uint32_t | HashCode () const |
get hash | |
virtual std::function< void(const CoreGraphics::CmdBufferId)> | GetApplyFunction () |
Get function to apply node. | |
virtual std::function< const CoreGraphics::PrimitiveGroup()> | GetPrimitiveGroupFunction () |
Get function to fetch primitive group. | |
virtual void | Unload () |
Unload data (don't call explicitly) | |
Protected Attributes | |
Resources::ResourceName | animResId |
recursively create model node instance and child model node instances | |
IndexT | animIndex |
Resources::ResourceName | skeletonResId |
IndexT | skeletonIndex |
Resources::ResourceName | variationResId |
Util::StringAtom | tag |
Resources::ResourceId | managedAnimResource |
Resources::ResourceId | managedVariationResource |
CoreGraphics::ShaderId | sharedShader |
CoreGraphics::BufferId | cbo |
IndexT | cboIndex |
Protected Attributes inherited from Models::TransformNode | |
Math::vec3 | position |
Math::quat | rotate |
Math::vec3 | scale |
Math::vec3 | rotatePivot |
Math::vec3 | scalePivot |
bool | isInViewSpace |
float | minDistance |
float | maxDistance |
bool | useLodDistances |
bool | lockedToViewer |
Protected Attributes inherited from Models::ModelNode | |
Util::StringAtom | name |
NodeType | type |
NodeBits | bits |
Models::ModelNode * | parent |
Util::Array< Models::ModelNode * > | children |
Math::bbox | boundingBox |
Util::StringAtom | tag |
IndexT | uniqueId |
Additional Inherited Members | |
Protected Member Functions inherited from Models::TransformNode | |
Protected Member Functions inherited from Models::ModelNode | |
virtual void | OnFinishedLoading (ModelStreamingData *streamingData) |
call when model node data is finished loading (not accounting for secondary resources) | |
Static Protected Attributes inherited from Models::ModelNode | |
static IndexT | ModelNodeUniqueIdCounter = 0 |
Models::CharacterNode::CharacterNode | ( | ) |
constructor
|
virtual |
destructor
|
overridevirtual |
discard node
Reimplemented from Models::ModelNode.
|
inline |
get the character's animation resource
|
inline |
get the owned character object
get the character's managed animation resource
|
inlineoverridevirtual |
character nodes should not create the hierarchy implicitly
Reimplemented from Models::ModelNode.
|
overridevirtual |
parse data tag (called by loader code)
Reimplemented from Models::TransformNode.
void Models::CharacterNode::OnResourcesLoaded | ( | ) |
called when resources have loaded
|
protected |
|
protected |
recursively create model node instance and child model node instances
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |