|
My Project
|
mesh instance referenced in model object. More...
#include <XRefObject.h>
Public Member Functions | |
| XRefMeshObject (CMeshObject *pParent, AssetEntity *pModel, const Vector3 &vOrigin, const Matrix4 &mxLocalTransform) | |
| virtual bool | SetParamsFromAsset () |
| return true if asset effect type is known. More... | |
| virtual HRESULT | Draw (SceneState *sceneState) |
| draw the model | |
| virtual HRESULT | DrawInner (SceneState *sceneState, const Matrix4 *pMxWorld=0, float fCameraToObjectDist=0.f) |
| virtual bool | SetReplaceableTexture (int ReplaceableTextureID, TextureEntity *pTextureEntity) |
| reset replaceable texture | |
Public Member Functions inherited from ParaEngine::XRefObject | |
| XRefObject (CMeshObject *pParent, AssetEntity *pModel, const Vector3 &vOrigin, const Matrix4 &mxLocalTransform) | |
| CMeshObject * | GetParent () |
| Get the parent object associated with this object. | |
| AssetEntity * | GetModelAsset () |
| return the model asset associated with this object | |
| virtual void | Animate (double dTimeDelta, int nRenderNumber=0) |
| animate the model | |
| Matrix4 * | GetRenderMatrix (Matrix4 &mxWorld, const Matrix4 *pMxParent=NULL, int nRenderNumber=0) |
| get matrix for rendering More... | |
| virtual Matrix4 * | GetAttachmentMatrix (Matrix4 &pOut, int nAttachmentID=0, int nRenderNumber=0) |
| Get the specified attachment matrix of the current model. More... | |
| virtual void | SetAnimation (int nAnimID) |
| Set the current animation id. More... | |
| virtual int | GetAnimation () |
| get the scaling. More... | |
| virtual void | SetAnimFrame (int nFrame) |
| set the current animation frame number relative to the beginning of current animation. More... | |
| virtual int | GetAnimFrame () |
| get the current animation frame number relative to the beginning of current animation. More... | |
| virtual void | SetUseGlobalTime (bool bUseGlobalTime) |
| whether to use global time to sync animation. More... | |
| virtual bool | IsUseGlobalTime () |
| whether to use global time to sync animation. More... | |
| Matrix4 & | GetLocalMatrix () |
| get local matrix | |
| Matrix4 * | GetMatrix (Matrix4 &mxWorld, const Matrix4 *pMatParent) |
| get matrix relative to a parent matrix | |
| virtual int | GetPrimaryTechniqueHandle () |
| when batch-rendering a group of objects, objects are usually sorted by their render techniques and then by their primary asset. More... | |
| virtual void | SetPrimaryTechniqueHandle (int nHandle) |
| Set a new render technique handle. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ParaEngine::XRefObject | |
| asset_ptr< AssetEntity > | m_pModelEntity |
| Vector3 | m_vOrigin |
| the xrefed model's origin relative to its parent model. More... | |
| Matrix4 | m_mxLocalTransform |
| animated local transform: this is usually a const read from the model file | |
| int | m_nTechniqueHandle |
| the primary technique handle | |
| CMeshObject * | m_pParent |
| parent object | |
mesh instance referenced in model object.
|
virtual |
set whether to use the material(texture) in the mesh file
Reimplemented from ParaEngine::XRefObject.
|
virtual |
return true if asset effect type is known.
and false in case the asset is not loaded yet.
Reimplemented from ParaEngine::XRefObject.
1.8.12