b3dUnlockMesh

Unlocks mesh and uploads changes to GPU (finalizes vertex/triangle modifications). Takes mesh (surface-based mesh entity). Returns nothing.

3D Graphics

Parameters & Returns

Parameters

mesh Int

Returns

Void

Quick Summary

Unlocks mesh and uploads changes to GPU (finalizes vertex/triangle modifications). Takes mesh (surface-based mesh entity). Returns nothing.

Technical Exegesis...

Unlocks mesh and uploads changes to GPU (finalizes vertex/triangle modifications). Takes mesh (surface-based mesh entity). Returns nothing. Validates mesh exists, type is ENTITY_MESH, and is surface-based. Sets mesh->locked=false. If mesh->needsGPUUpload=true, calls RebuildGPUBuffersFromSurfaces(mesh) to create/update GPU vertex and index buffers. Silently returns on validation errors.

This function finalizes mesh editing and synchronizes CPU data to GPU.

Example

Example.bam
; No example implemented yet