> home > Custom Layer Boundary API

try_release_face

September 8th 2024
Attempt to release the resources tied up in a face

Signature

C++
b32
try_release_face(Application_Links* app,
                 Face_ID id,
                 Face_ID replacement_id);

Parameters

app

the standard custom layer context pointer

id

the id of the face to release

replacement_id

the id of the new face to replace existing usages of the released face

Return

non-zero on success, when the face exists and the replacement also exists and is a different face, otherwise zero