PM_OVERLAY_ADD_3D_TRIANGLES
Syntax
handle_val = PM_OVERLAY_ADD_3D_TRIANGLES ( overlay_handle, [properties_tag_record_handle,] points_2D_array_handle );
- Input arguments
-
handle overlay_handle Handle of the overlay context to which to add the triangles. handle points_2D_array_handle DM_2D_ARRAY that holds the edges of the world space for the triangles. Three subsequent edges will form a triangle. Must be a multiple of three.
- Optional input arguments
-
handle properties_tag_record_handle Handle of the tag record from which to get the properties of the triangles.
Accepted properties: color, depth test.
Return Values
- Success:
-
handle entity_handle Handle to the created overlay entity.
- Failure:
-
int -1 Script interface error.
Description
This function adds 3D triangles to a given overlay context. The overlay context must first be opened with PM_OVERLAY_OPEN(overlay_handle).
Example
%PMS_HOME%\pm\macro\Examples\PM_OVERLAY_DEMO.mac
Function Set
Related Functions