Mesh Object Functions

From Danmakufu Wiki
Jump to: navigation, search

ObjMesh_Create

Returns: object ID (real)

Creates a 3D mesh object and returns its ID.

ObjMesh_Load

Arguments:
 1) object ID (real)
 2) path of the 3D object file (char)

Loads a 3D mesh file. The file must be either .mqo (Metasequoia) or .elem (Elfreina). Metasequoia software is available for free in English.

ObjMesh_SetColor

Arguments:
 1) object ID (real)
 2) R (real)
 3) G (real)
 4) B (real)

Sets the color of the mesh (0-255).

ObjMesh_SetAlpha

Arguments:
 1) object ID (real)
 2) alpha value (real)

Sets the alpha value of the mesh (0-255).

ObjMesh_SetAnimation

Arguments:
 1) object ID (real)
 2) animation name (char)
 3) animation frame (real)

Sets the animation of the mesh object. The animation frame of the specified animation name is drawn.

ObjMesh_SetCoordinate2D

Arguments:
 1) object ID (real)
 2) 2D coordinates (bool)

When set to true, allows the mesh to be positioned using 2D coordinates.