![]() |
Kochol Game Engine
0.1.0
|
#include <Bone.h>
Public Member Functions | |
| Bone () | |
| Constructor. | |
| ~Bone () | |
| Destructor. | |
| void | AddChild (SceneNode *child) |
| Adds a node as child. | |
| void | PreRender (float elapsedTime) |
| PrePare the final matrix. | |
| virtual void | UpdateFinalMat () |
| Update final matrix. | |
| void | Render () |
| Nothing to do. | |
| void | PostRender () |
| Nothing to do. | |
| void | Draw (bool WithMaterial, bool WithTransform, bool bPosition, bool bNormalTexcoord, bool bTangentBinormal) |
| Nothing to do. | |
| void | SetName (const char *Name) |
| Set a name for this bone. | |
| void | SetStartPosition (float *Pos) |
| Setting the start position. | |
| void | SetStartRotation (float *Rot) |
| Setting the start rotation. | |
| void | SetParent (int ParentIndex) |
| Setting the parent index. Set -1 for no parent. | |
| void | SetParent (SceneNode *parent) |
| Sets the node parent. | |
Public Member Functions inherited from kge::sn::SceneNode | |
| SceneNode () | |
| Constructor. | |
| virtual | ~SceneNode () |
| Destructor. | |
| virtual bool | AddEffect (efx::EffectType p, efx::Effect **ppOut) |
| virtual void | SetSceneManager (SceneManager *smgr) |
| Sets the scene manager and renderer pointer. | |
| virtual void | SetPosition (const math::Vector &v) |
| Set the position of the scenenode. | |
| virtual void | SetRotation (const math::Vector &v) |
| Set the rotation of the scenenode. | |
| virtual void | SetScale (const math::Vector &v) |
| Set the scale of the scenenode. | |
| virtual void | SetAutomaticCulling (bool isTrue) |
| Set Cutting Enable or Disable. | |
| virtual void | SetVisible (bool isVisible) |
| Set Visible Enable or Disable. | |
| virtual bool | GetVisible () |
| Get Visible. | |
| virtual bool | IsVisibleInFrame () |
| Is it visible in this frame? | |
| virtual const math::Vector & | GetPosition () const |
| Returns the node position. | |
| virtual const math::Vector & | GetRotation () const |
| Returns the node rotation. | |
| virtual const math::Vector & | GetScale () const |
| Returns the node scale. | |
| virtual math::Matrix * | GetAbsoluteMatrix () const |
| Get the absolute matrix. | |
| virtual math::Matrix * | GetFinalMatrix () |
| Get the final matrix. | |
| virtual u32 | GetMaterialCount () |
| Get the count of materials this node has. | |
| virtual gfx::Material * | GetMaterial (u32 Index) |
| virtual math::Sphere * | GetBoundingBox () |
| Returns the node bounding box. | |
| virtual math::AABB * | GetAxisAlignedBoundingBox () |
| Returns the node Axis aligned bounding box. | |
| virtual NodeType | GetType () const |
| Returns the node type. | |
| virtual void | RemoveChild (SceneNode *child) |
| virtual void | RemoveChildren () |
| Removes all children of this node. | |
| virtual const SceneNode * | GetParent () |
| Returns the node parent. | |
| virtual core::String * | GetName () |
| Gets the node name. | |
| virtual void | SetID (int ID) |
| Sets the node ID. | |
| virtual int | GetID () |
| Gets the node ID. | |
| void | EnableShadow (bool enable) |
| bool | HasShadow () const |
Public Member Functions inherited from kge::KgeUnknown | |
| KgeUnknown () | |
| Constructor. | |
| virtual | ~KgeUnknown () |
| Destructor. | |
| virtual void | AddRef () |
| Add a reference to the object. | |
| virtual void | DecRef () |
| Decrease a reference from the object. if its reference count get 0 then the object will destroy. | |
| u32 | GetRefCount () |
| Return resource reference count. | |
| const char * | GetDebugText () |
| returns the instance debug text. | |
Public Attributes | |
| core::String | m_sName |
| gfx::Vertex3 | m_vStartPosition |
| Bone name. | |
| gfx::Vertex3 | m_vStartRotation |
| The start position. | |
| math::Matrix | m_matLocal |
| The start rotation. | |
| math::Matrix | m_matAbs |
| The Local matrix for transforms. | |
| math::Matrix | m_matFinal |
| The Absolute matrix = Parent.m_matAbs * m_matLocal. | |
| int | m_iParent |
| The Final matrix created from animations. | |
Protected Attributes | |
| bool | m_bAddedToSnmgr |
| The Parent index. -1 means has no parent. | |
Protected Attributes inherited from kge::sn::SceneNode | |
| core::String | m_sName |
| int | m_iID |
| SceneManager * | m_pSnMan |
| gfx::Renderer * | m_pRenderer |
| bool | m_bVis |
| bool | m_bAutoCulling |
| bool | m_bVisFrame |
| SceneNode * | m_pParent |
| std::vector< SceneNode * > | m_vChilds |
| std::vector< int > | m_vEffectType |
| std::vector< efx::Effect * > | m_vEffect |
| math::Matrix * | m_pAbsMat |
| math::Matrix * | m_pFinalMat |
| math::Vector | m_Position |
| math::Vector | m_Rotation |
| math::Vector | m_Scale |
| math::Sphere * | m_pBB |
| math::AABB * | m_pAABB |
| NodeType | m_eNodeType |
| bool | m_hasShadow |
Additional Inherited Members | |
Protected Member Functions inherited from kge::sn::SceneNode | |
| virtual bool | HasThisEffect (efx::EffectType p) |
|
inlinevirtual |
Adds a node as child.
Reimplemented from kge::sn::SceneNode.
Definition at line 36 of file Bone.h.
References kge::sn::SceneNode::AddChild(), kge::sn::SceneManager::AddSceneNode(), kge::sn::ENT_Camera, kge::Device::GetSceneManager(), and kge::Device::GetSingletonPtr().
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Set a name for this bone.
Reimplemented from kge::sn::SceneNode.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inlinevirtual |
|
protected |
| int kge::sn::Bone::m_iParent |
| math::Matrix kge::sn::Bone::m_matAbs |
| math::Matrix kge::sn::Bone::m_matFinal |
| math::Matrix kge::sn::Bone::m_matLocal |
| core::String kge::sn::Bone::m_sName |
| gfx::Vertex3 kge::sn::Bone::m_vStartPosition |
| gfx::Vertex3 kge::sn::Bone::m_vStartRotation |