My Project
Public Member Functions | List of all members
ParaEngine::XRefMeshObject Class Reference

mesh instance referenced in model object. More...

#include <XRefObject.h>

Inheritance diagram for ParaEngine::XRefMeshObject:
ParaEngine::XRefObject

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)
 
CMeshObjectGetParent ()
 Get the parent object associated with this object.
 
AssetEntityGetModelAsset ()
 return the model asset associated with this object
 
virtual void Animate (double dTimeDelta, int nRenderNumber=0)
 animate the model
 
Matrix4GetRenderMatrix (Matrix4 &mxWorld, const Matrix4 *pMxParent=NULL, int nRenderNumber=0)
 get matrix for rendering More...
 
virtual Matrix4GetAttachmentMatrix (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...
 
Matrix4GetLocalMatrix ()
 get local matrix
 
Matrix4GetMatrix (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< AssetEntitym_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
 
CMeshObjectm_pParent
 parent object
 

Detailed Description

mesh instance referenced in model object.

Member Function Documentation

§ DrawInner()

HRESULT ParaEngine::XRefMeshObject::DrawInner ( SceneState sceneState,
const Matrix4 pMxWorld = 0,
float  fCameraToObjectDist = 0.f 
)
virtual

set whether to use the material(texture) in the mesh file

Reimplemented from ParaEngine::XRefObject.

§ SetParamsFromAsset()

bool XRefMeshObject::SetParamsFromAsset ( )
virtual

return true if asset effect type is known.

and false in case the asset is not loaded yet.

Reimplemented from ParaEngine::XRefObject.


The documentation for this class was generated from the following files: