Turn one illustration into an animated 2D mesh avatar with a coding agent and a local editor
language = "C"
include_guard = "MESH_AVATAR_RENDER_H"
autogen_warning = "/* Generated by cbindgen 0.29.4. Do not edit; run conformance/ffi-header.sh. */"
usize_is_size_t = true
documentation = true
style = "type"
cpp_compat = true
includes = ["mesh_avatar.h"]
header = """
/* Optional headless rendering extension to mesh_avatar.h.
* Build the library with --features render before linking these functions.
* The default CPU-only library does NOT export them. Including this header
* requires no macro and does not enable the library feature.
*
* Renderers use opaque never-reused tokens and per-renderer serialization.
* They reference an avatar token without owning it; destroy renderers before
* destroying their avatar. Rendering reads the cached frame without ticking.
* Raw geometry borrowers must still synchronize their reads against tick/destroy.
* All renderer functions use the core MaStatus and thread-local last-error API.
* Recover from a contained GPU panic by destroying/reopening the affected objects.
* Destroy all avatars/renderers before unloading the library.
*/
"""
[parse]
parse_deps = false
[export]
item_types = ["constants", "structs", "typedefs", "functions"]
exclude = ["RenderEntry", "RenderEntries", "Result", "Error"]