b3dCopyMesh

Creates a deep copy of a mesh entity with independent vertex/index buffers. Takes sourceHandle (mesh entity to copy). Returns new mesh entity handle or 0 on failure.

3D Graphics

Parameters & Returns

Parameters

entity Int

Returns

Int

Quick Summary

Creates a deep copy of a mesh entity with independent vertex/index buffers. Takes sourceHandle (mesh entity to copy). Returns new mesh entity handle or 0 on failure.

Technical Exegesis...

Creates a deep copy of a mesh entity with independent vertex/index buffers. Takes sourceHandle (mesh entity to copy). Returns new mesh entity handle or 0 on failure. Validates source exists and type is ENTITY_MESH (not ENTITY_ANIMATED_MESH - those more complex). Validates mesh data exists. Gets 3D device. Allocates new Mesh3D structure.

Example

Example.bam
; No example implemented yet