Serenity3D Mesh API
Function Serenity_GetAN8Count()
-
Returns the number of Anim8or objects loaded with the current stage
Function Serenity_GetAN8ID(an8_index)
-
Returns the RCBasic Anim8or ID
-
NOTE: an8_index should be from 0 to Serenity_GetAN8Count()-1
Function Serenity_GetMeshIndex(mesh_name$)
-
Returns the Serenity Mesh Index which is used to access mesh data in the API
Function Serenity_GetMeshID(mesh_index)
-
Returns the RCBasic Mesh ID of the given mesh index or -1 if mesh_index is not valid
Function Serenity_GetMeshName$(mesh_index)
-
Returns the mesh name fron the given mesh index
Function Serenity_GetMeshType(mesh_index)
-
Returns the mesh type
-
Possible values are:
-
SN_MESH_TYPE_NORMAL - Unless the mesh is loaded from an Anim8or project or a zip its going to be this
-
SN_MESH_TYPE_ZIPPED - A mesh loaded from an archive like a *.pak file
-
SN_MESH_TYPE_AN8_SCENE - Anim8or mesh
Function Serenity_GetMeshAN8Index(mesh_index)
-
Returns the Serenity Anim8or object index
Function Serenity_GetMeshAN8Scene$(mesh_index)
-
Returns the scene name$ in Anim8or that this mesh is loaded from
Function Serenity_GetMeshArchiveName$(mesh_index)
-
Returns the name of the archive that the mesh is loaded from
Function Serenity_GetMeshFile$(mesh_index)
-
Returns the name of the mesh file that the mesh is loaded from
Function Serenity_GetMeshMaterialCount(mesh_index)
-
Returns the number of materials on given mesh
Function Serenity_GetMeshMaterialIndex(mesh_index, material_num)
-
Returns the Serenity Material Index from the material number on the given mesh
Function Serenity_GetMeshAnimationCount(mesh_index)
-
Returns the number of animations on the given mesh
Function Serenity_GetMeshAnimationID(mesh_index, animation_num)
-
Returns the RCBasic mesh animation id
Function Serenity_GetMeshAnimationIDByName(mesh_index, animation_name$)
-
Returns the RCBasic mesh animation id