7 class CParaXAnimInstance;
8 class CharModelInstance;
30 virtual void Animate(
double dTimeDelta,
int nRenderNumber=0 ){};
37 virtual HRESULT DrawInner(
SceneState * sceneState,
const Matrix4* pMxWorld=0,
float fCameraToObjectDist=0.f);
122 asset_ptr<AssetEntity> m_pModelEntity;
155 virtual HRESULT DrawInner(
SceneState * sceneState,
const Matrix4* pMxWorld=0,
float fCameraToObjectDist=0.f);
185 void DeleteAnimInstance();
192 virtual void Animate(
double dTimeDelta,
int nRenderNumber=0 );
199 virtual HRESULT DrawInner(
SceneState * sceneState,
const Matrix4* pMxWorld=0,
float fCameraToObjectDist=0.f);
Which DXT Compression to Use? Obviously, there are some trade-offs between the different formats whic...
Definition: TextureEntity.h:29
It's used as parameter to Draw method of each scene object.
Definition: SceneState.h:284
abstract class for all animation instance implementation.
Definition: AnimInstanceBase.h:66
CMeshObject * GetParent()
Get the parent object associated with this object.
Definition: XRefObject.h:21
int m_nTechniqueHandle
the primary technique handle
Definition: XRefObject.h:133
virtual void SetAnimFrame(int nFrame)
set the current animation frame number relative to the beginning of current animation.
Definition: XRefObject.h:76
base class for all xref objects
Definition: XRefObject.h:13
different physics engine has different winding order.
Definition: EventBinding.h:32
Matrix4 & GetLocalMatrix()
get local matrix
Definition: XRefObject.h:96
character animation instance: it includes both the animation and model display information.
Definition: CustomCharModelInstance.h:17
virtual bool SetReplaceableTexture(int ReplaceableTextureID, TextureEntity *pTextureEntity)
set the replaceable texture at the given index with a new texture.
Definition: XRefObject.h:48
Standard 3-dimensional vector.
Definition: ParaVector3.h:16
virtual Matrix4 * GetAttachmentMatrix(Matrix4 &pOut, int nAttachmentID=0, int nRenderNumber=0)
Get the specified attachment matrix of the current model.
Definition: XRefObject.h:64
static mesh scene object.
Definition: MeshObject.h:13
animated animation instance referenced in model object.
Definition: XRefObject.h:167
CMeshObject * m_pParent
parent object
Definition: XRefObject.h:136
Matrix4 * GetMatrix(Matrix4 &mxWorld, const Matrix4 *pMatParent)
get matrix relative to a parent matrix
Definition: XRefObject.cpp:86
AssetEntity * GetModelAsset()
return the model asset associated with this object
Definition: XRefObject.h:24
Matrix4 m_mxLocalTransform
animated local transform: this is usually a const read from the model file
Definition: XRefObject.h:130
virtual int GetAnimation()
get the scaling.
Definition: XRefObject.h:71
virtual bool SetParamsFromAsset()
return true if asset effect type is known.
Definition: XRefObject.cpp:43
virtual void Animate(double dTimeDelta, int nRenderNumber=0)
animate the model
Definition: XRefObject.h:30
Matrix4 * GetRenderMatrix(Matrix4 &mxWorld, const Matrix4 *pMxParent=NULL, int nRenderNumber=0)
get matrix for rendering
Definition: XRefObject.cpp:59
virtual HRESULT Draw(SceneState *sceneState)
draw the model
Definition: XRefObject.cpp:49
virtual bool IsUseGlobalTime()
whether to use global time to sync animation.
Definition: XRefObject.h:93
The ref_ptr class template stores a pointer to a dynamically allocated (AssetEntity|CRefCounted|BaseA...
Definition: PERefPtr.h:13
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: ParaMatrix4.h:23
virtual int GetPrimaryTechniqueHandle()
when batch-rendering a group of objects, objects are usually sorted by their render techniques and th...
Definition: XRefObject.h:110
virtual int GetAnimFrame()
get the current animation frame number relative to the beginning of current animation.
Definition: XRefObject.h:79
virtual void SetUseGlobalTime(bool bUseGlobalTime)
whether to use global time to sync animation.
Definition: XRefObject.h:86
virtual void SetPrimaryTechniqueHandle(int nHandle)
Set a new render technique handle.
Definition: XRefObject.h:119
Vector3 m_vOrigin
the xrefed model's origin relative to its parent model.
Definition: XRefObject.h:126
mesh instance referenced in model object.
Definition: XRefObject.h:140
virtual void SetAnimation(int nAnimID)
Set the current animation id.
Definition: XRefObject.h:68
this is primary animation instance used for normal animated character or advanced customizable charac...
Definition: ParaXAnimInstance.h:13
Base class for managed asset entity in ParaEngine.
Definition: AssetEntity.h:25