HPL3/Amnesia: Rebirth/Scripting/cMesh

From Frictional Wiki
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Fields

cMesh has no public fields.

Functions

Return Type Function And Description
void AddAnimation(cAnimation@ apAnimation)
void AddNode(cNode3D@ apNode)
void ClearAnimations(bool abDeleteAll)
void CompileBonesAndSubMeshes()
cSubMesh CreateSubMesh(const tString &in asName)
cAnimation GetAnimation(int alIndex)
cAnimation GetAnimationFromName(const tString &in asName)
int GetAnimationIndex(const tString &in asName)
int GetAnimationNum()
float GetBoneBoundingRadius(int alIdx)
cNode3D GetNode(int alIdx)
cNode3D GetNodeByName(const tString &in asName)
int GetNodeNum()
cNode3D GetRootNode()
cSkeleton GetSkeleton()
cSubMesh GetSubMesh(uint alIdx)
int GetSubMeshIndex(const tString &in asName)
cSubMesh GetSubMeshName(const tString &in asName)
int GetSubMeshNum()
int GetTriangleCount()
void SetSkeleton(cSkeleton@ apSkeleton)

Details

AddAnimation

void AddAnimation(cAnimation@ apAnimation)


Parameters

Returns:

  • void

AddNode

void AddNode(cNode3D@ apNode)


Parameters

Returns:

  • void

ClearAnimations

void ClearAnimations(bool abDeleteAll)


Parameters

  • abDeleteAll (bool) —

Returns:

  • void

CompileBonesAndSubMeshes

void CompileBonesAndSubMeshes()

Returns:

  • void

CreateSubMesh

cSubMesh@ CreateSubMesh(const tString &in asName)


Parameters

Returns:

  • cSubMesh@

GetAnimation

cAnimation@ GetAnimation(int alIndex)


Parameters

  • alIndex (int) —

Returns:

  • cAnimation@

GetAnimationFromName

cAnimation@ GetAnimationFromName(const tString &in asName)


Parameters

Returns:

  • cAnimation@

GetAnimationIndex

int GetAnimationIndex(const tString &in asName)


Parameters

Returns:

  • int

GetAnimationNum

int GetAnimationNum()

Returns:

  • int

GetBoneBoundingRadius

float GetBoneBoundingRadius(int alIdx)


Parameters

  • alIdx (int) —

Returns:

  • float

GetNode

cNode3D@ GetNode(int alIdx)


Parameters

  • alIdx (int) —

Returns:

  • cNode3D@

GetNodeByName

cNode3D@ GetNodeByName(const tString &in asName)


Parameters

Returns:

  • cNode3D@

GetNodeNum

int GetNodeNum()

Returns:

  • int

GetRootNode

cNode3D@ GetRootNode()

Returns:

  • cNode3D@

GetSkeleton

cSkeleton@ GetSkeleton()

Returns:

  • cSkeleton@

GetSubMesh

cSubMesh@ GetSubMesh(uint alIdx)


Parameters

  • alIdx (uint) —

Returns:

  • cSubMesh@

GetSubMeshIndex

int GetSubMeshIndex(const tString &in asName)


Parameters

Returns:

  • int

GetSubMeshName

cSubMesh@ GetSubMeshName(const tString &in asName)


Parameters

Returns:

  • cSubMesh@

GetSubMeshNum

int GetSubMeshNum()

Returns:

  • int

GetTriangleCount

int GetTriangleCount()

Returns:

  • int

SetSkeleton

void SetSkeleton(cSkeleton@ apSkeleton)


Parameters

Returns:

  • void

References

See all references...