![]() |
Kochol Game Engine
0.1.0
|
#include <AnimatedMesh.h>
Public Member Functions | |
AnimatedMesh (gfx::MeshBuffer *mb) | |
Constructor. | |
~AnimatedMesh () | |
Destructor. | |
virtual void | PreRender (float elapsedTime) |
Karhayee ke Ghabl az render bayad anjam shvad. Mesle colision detection. | |
virtual void | Render () |
Render kardane Object. | |
virtual void | PostRender () |
Karhaee ke bad az render bayad anjam beshe. | |
virtual bool | AddEffect (efx::EffectType p, efx::Effect **ppOut) |
virtual void | Draw (bool WithMaterial, bool WithTransform, bool bPosition, bool bNormalTexcoord, bool bTangentBinormal) |
virtual void | SetAnimationTime (float StartTime=0.0f, float EndTime=-1.0f, bool Loop=true, bool Blend=true) |
virtual void | SetAnimationFrame (int StartTime=0, int EndTime=-1, bool Loop=true, bool Blend=true) |
void | SetActionFrame (int ActionFrame) |
Sets the action frame. | |
bool | IsActionFrameReached () |
Returns true if action frame of animation reached. Note: It only returns true one time for each frame. | |
virtual void | SetAnimationSpeed (float Speed) |
float | GetAnimationSpeed () |
Returns the animation speed. | |
virtual void | SetShader (gfx::ShaderInstance *shader) |
virtual u32 | GetMaterialCount () |
Get the count of materials this node has. | |
virtual gfx::Material * | GetMaterial (u32 Index) |
virtual Bone * | GetBoneByName (const char *Name) |
virtual Bone * | GetBones () |
virtual u32 | GetBonesCount () |
virtual void | ConnectOnAnimationEnd (kge::core::Functor1< void, void * > *pFun) |
virtual void | DisconnectOnAnimationEnd () |
Stop from calling user function. | |
virtual void | SetUserData (void *data) |
Set your data for sending back them on callbacks. | |
virtual void * | GetUserData () |
Get your data. | |
void | SetFileName (core::String *str) |
For internal use. | |
core::String * | GetFileName () |
Returns the mesh file name. | |
void | RemoveChildrenFromBones () |
![]() | |
SceneNode () | |
Constructor. | |
virtual | ~SceneNode () |
Destructor. | |
virtual void | AddChild (SceneNode *child) |
Adds a node as child. | |
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 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 void | SetParent (SceneNode *parent) |
Sets the node parent. | |
virtual void | SetName (const char *name) |
Sets the node name. | |
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 |
virtual void | UpdateFinalMat () |
Update final matrix. | |
![]() | |
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. |
Static Public Member Functions | |
static void | SetGlobalAnimationSpeed (float fSpeed) |
Sets the global animation speed. | |
static float | GetGlobalAnimationSpeed () |
Protected Member Functions | |
virtual void | Animate (float elapsedTime) |
Animates the mesh. | |
virtual void | RenderMesh () |
Renders the mesh depend on their Bones. | |
virtual void | CreateMirrorPlane (efx::Effect **ppCreatedMirror) |
virtual void | CreateShadowPlane (efx::Effect **ppCreatedShadow) |
virtual void | CreateHardwareSkin () |
virtual void | SetShaderConstsForHS (gfx::ShaderInstance *si) |
![]() | |
virtual bool | HasThisEffect (efx::EffectType p) |
![]() | |
void | SetDebugText (char *text) |
Static Protected Attributes | |
static float | m_sAnimSpeed |
Global animation speed. |
Definition at line 20 of file AnimatedMesh.h.
kge::sn::AnimatedMesh::AnimatedMesh | ( | gfx::MeshBuffer * | mb | ) |
Constructor.
kge::sn::AnimatedMesh::~AnimatedMesh | ( | ) |
Destructor.
|
virtual |
Ezafe kardane effect be hamin gereh.
p | Effecti ke mikhahid ezafe konid. |
ppOut | Class Effect sakhte shode. |
Reimplemented from kge::sn::SceneNode.
|
protectedvirtual |
Animates the mesh.
|
virtual |
Get a pointer to function to call it at the end of animation.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Stop from calling user function.
|
virtual |
Draw the node with/without its Materials and Transforms.
WithMaterial | Draw it with its own materials or not? |
WithMaterial | Draw it with its own Transformations or not? |
Implements kge::sn::SceneNode.
|
inline |
Returns the animation speed.
Definition at line 89 of file AnimatedMesh.h.
|
virtual |
Get a bone by its name.
Name | The bone name. |
|
inlinevirtual |
Definition at line 111 of file AnimatedMesh.h.
|
inlinevirtual |
Definition at line 113 of file AnimatedMesh.h.
|
inline |
Returns the mesh file name.
Definition at line 132 of file AnimatedMesh.h.
|
inlinestatic |
Definition at line 138 of file AnimatedMesh.h.
|
virtual |
Get the node material by its index.
Index | The material index. Some nodes have more than one material. |
Reimplemented from kge::sn::SceneNode.
|
virtual |
Get the count of materials this node has.
Reimplemented from kge::sn::SceneNode.
|
inlinevirtual |
Get your data.
Definition at line 126 of file AnimatedMesh.h.
|
inline |
Returns true if action frame of animation reached. Note: It only returns true one time for each frame.
Definition at line 76 of file AnimatedMesh.h.
|
virtual |
Karhaee ke bad az render bayad anjam beshe.
Implements kge::sn::SceneNode.
|
virtual |
Karhayee ke Ghabl az render bayad anjam shvad. Mesle colision detection.
Implements kge::sn::SceneNode.
void kge::sn::AnimatedMesh::RemoveChildrenFromBones | ( | ) |
|
virtual |
Render kardane Object.
Implements kge::sn::SceneNode.
|
protectedvirtual |
Renders the mesh depend on their Bones.
void kge::sn::AnimatedMesh::SetActionFrame | ( | int | ActionFrame | ) |
Sets the action frame.
|
virtual |
Set the mesh animation frame.
StartTime | The starting frame for animation. |
EndTime | The frame which the animation must stop from that frame if you want to stop it at the end pass -1 to do it auto. |
Loop | Loop the animation by true. |
|
inlinevirtual |
Set the animation speed default value is 1.0f
Speed | The animation speed. |
Definition at line 86 of file AnimatedMesh.h.
|
virtual |
Set the mesh animation time.
StartTime | The starting time for animation. |
EndTime | The time which the animation must stop from that time if you want to stop it at the end pass -1 to do it auto. |
Loop | Loop the animation by true. |
|
inline |
For internal use.
Definition at line 129 of file AnimatedMesh.h.
|
inlinestatic |
Sets the global animation speed.
Definition at line 135 of file AnimatedMesh.h.
|
virtual |
Set the shader for all materials.
shader | Shader to set. |
|
protectedvirtual |
|
inlinevirtual |
Set your data for sending back them on callbacks.
Definition at line 123 of file AnimatedMesh.h.
|
protected |
Definition at line 165 of file AnimatedMesh.h.
|
protected |
Loop the animation or not.
Definition at line 165 of file AnimatedMesh.h.
|
protected |
Definition at line 165 of file AnimatedMesh.h.
|
protected |
Definition at line 165 of file AnimatedMesh.h.
|
protected |
The action time of animation.
Definition at line 158 of file AnimatedMesh.h.
|
protected |
Definition at line 158 of file AnimatedMesh.h.
|
protected |
The end time of animation.
Definition at line 158 of file AnimatedMesh.h.
|
protected |
The last time of animation.
Definition at line 158 of file AnimatedMesh.h.
|
protected |
The animation speed.
Definition at line 158 of file AnimatedMesh.h.
|
protected |
|
protected |
The count of meshes.
Definition at line 155 of file AnimatedMesh.h.
|
protected |
Animation.
Definition at line 155 of file AnimatedMesh.h.
|
protected |
Bones.
Definition at line 153 of file AnimatedMesh.h.
|
protected |
*< Mesh file name
Definition at line 151 of file AnimatedMesh.h.
|
protected |
|
protected |
Meshes.
Definition at line 149 of file AnimatedMesh.h.
|
protected |
Definition at line 186 of file AnimatedMesh.h.
|
protected |
Definition at line 145 of file AnimatedMesh.h.
|
protected |
Mesh buffer pointer.
Definition at line 147 of file AnimatedMesh.h.
|
protected |
Definition at line 177 of file AnimatedMesh.h.
|
protected |
Definition at line 170 of file AnimatedMesh.h.
|
protected |
Definition at line 170 of file AnimatedMesh.h.
|
protected |
Definition at line 184 of file AnimatedMesh.h.
|
protected |
Definition at line 170 of file AnimatedMesh.h.
|
protected |
Definition at line 170 of file AnimatedMesh.h.
|
protected |
User data.
Definition at line 192 of file AnimatedMesh.h.
|
protected |
Definition at line 177 of file AnimatedMesh.h.
|
staticprotected |
Global animation speed.
Definition at line 195 of file AnimatedMesh.h.
|
protected |
Definition at line 179 of file AnimatedMesh.h.
|
protected |
Definition at line 179 of file AnimatedMesh.h.
|
protected |
Definition at line 179 of file AnimatedMesh.h.
|
protected |
Definition at line 179 of file AnimatedMesh.h.
|
protected |
Definition at line 179 of file AnimatedMesh.h.