b3dRemoveSurfaceDetailTexture

Removes surface detail layer (frees slot, compacts layers, 1=success 0=not found, surface-based only). Takes meshHandle (mesh entity handle), surfaceHandle (surface index 0 to surfaceCount-1), textureHandle (texture handle identifying which layer to remove). Returns 1 (TRUE) if layer removed successfully, 0 (FALSE) if texture not found or error.

3D Graphics

Parameters & Returns

Parameters

meshHandle Int
surfaceHandle Int
textureHandle Int

Returns

Int

Quick Summary

Removes surface detail layer (frees slot, compacts layers, 1=success 0=not found, surface-based only). Takes meshHandle (mesh entity handle), surfaceHandle (surface index 0 to surfaceCount-1), textureHandle (texture handle identifying which layer to remove). Returns 1 (TRUE) if layer removed successfully, 0 (FALSE) if texture not found or error.

Technical Exegesis...

Removes surface detail layer (frees slot, compacts layers, 1=success 0=not found, surface-based only). Takes meshHandle (mesh entity handle), surfaceHandle (surface index 0 to surfaceCount-1), textureHandle (texture handle identifying which layer to remove). Returns 1 (TRUE) if layer removed successfully, 0 (FALSE) if texture not found or error. Finds detail layer containing textureHandle in specific surface's material, removes it, shifts higher layers down to compact array, clears last slot.

Example

Example.bam
; No example implemented yet