Changeset View
Changeset View
Standalone View
Standalone View
source/graphics/Model.h
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | public: | ||||
CMaterial& GetMaterial() { return m_Material; } | CMaterial& GetMaterial() { return m_Material; } | ||||
// set the given animation as the current animation on this model | // set the given animation as the current animation on this model | ||||
bool SetAnimation(CSkeletonAnim* anim, bool once = false); | bool SetAnimation(CSkeletonAnim* anim, bool once = false); | ||||
// get the currently playing animation, if any | // get the currently playing animation, if any | ||||
CSkeletonAnim* GetAnimation() const { return m_Anim; } | CSkeletonAnim* GetAnimation() const { return m_Anim; } | ||||
float GetAnimTime() const { return m_AnimTime; } | |||||
// set the animation state to be the same as from another; both models should | // set the animation state to be the same as from another; both models should | ||||
// be compatible types (same type of skeleton) | // be compatible types (same type of skeleton) | ||||
void CopyAnimationFrom(CModel* source); | void CopyAnimationFrom(CModel* source); | ||||
// set object flags | // set object flags | ||||
void SetFlags(int flags) { m_Flags=flags; } | void SetFlags(int flags) { m_Flags=flags; } | ||||
// get object flags | // get object flags | ||||
int GetFlags() const { return m_Flags; } | int GetFlags() const { return m_Flags; } | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator