|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
Caller-owned GLB scenes with 32-bit geometry indices. More...
#include "mesh.h"Data Structures | |
| struct | rmgui_mesh_large_model_t |
| Immutable loaded scene. More... | |
| struct | rmgui_mesh_large_instance_t |
| Mutable caller-owned pose borrowing a live large model. More... | |
Functions | |
| rmgui_mesh_result_t | rmgui_mesh_large_measure (const uint8_t *bytes, size_t length, const rmgui_mesh_limits_t *limits, size_t *model_bytes) |
| Validate and report complete aligned model storage bytes. | |
| rmgui_mesh_result_t | rmgui_mesh_large_load (rmgui_mesh_large_model_t *out, size_t storage_size, const uint8_t *bytes, size_t length, const rmgui_mesh_limits_t *limits) |
| Load transactionally into caller-owned max_align_t-aligned storage including the header. | |
| void | rmgui_mesh_large_release (rmgui_mesh_large_model_t *model) |
| Release the atlas and zero the header; NULL is safe. | |
| size_t | rmgui_mesh_large_instance_size (const rmgui_mesh_large_model_t *model) |
| Return complete aligned instance buffer bytes, or zero on overflow/NULL. | |
| rmgui_mesh_result_t | rmgui_mesh_large_instance_init (rmgui_mesh_large_instance_t *out, size_t storage_size, const rmgui_mesh_large_model_t *model) |
| Set rest pose in caller-owned max_align_t-aligned storage including header. | |
| int | rmgui_mesh_large_node_find (const rmgui_mesh_large_model_t *model, const char *name) |
| Return the index of an exact node name, or -1 for no match/NULL inputs. | |
| int | rmgui_mesh_large_clip_find (const rmgui_mesh_large_model_t *model, const char *name) |
| As rmgui_mesh_clip_find: return a unique exact name match or -1. | |
| rmgui_mesh_result_t | rmgui_mesh_large_sample_clip (rmgui_mesh_large_instance_t *instance, int clip, float seconds, int loop) |
| As rmgui_mesh_sample_clip: sample a clip ID or RMGUI_MESH_REST at a caller-supplied finite time. | |
| rmgui_mesh_result_t | rmgui_mesh_large_visible (rmgui_mesh_large_instance_t *instance, int node, int visible) |
| Override a valid node's visibility; failure preserves the pose. | |
| rmgui_mesh_result_t | rmgui_mesh_large_badge (rmgui_mesh_large_instance_t *instance, int count) |
| Clamp the badge count to 0..99 and update digit UV offsets/visibility. | |
Caller-owned GLB scenes with 32-bit geometry indices.
| rmgui_mesh_result_t rmgui_mesh_large_measure | ( | const uint8_t * | bytes, |
| size_t | length, | ||
| const rmgui_mesh_limits_t * | limits, | ||
| size_t * | model_bytes ) |
Validate and report complete aligned model storage bytes.
NULL limits uses integer representation ceilings; failure preserves *model_bytes.
| rmgui_mesh_result_t rmgui_mesh_large_load | ( | rmgui_mesh_large_model_t * | out, |
| size_t | storage_size, | ||
| const uint8_t * | bytes, | ||
| size_t | length, | ||
| const rmgui_mesh_limits_t * | limits ) |
Load transactionally into caller-owned max_align_t-aligned storage including the header.
Atlas pixels alone are retained allocations. Supports the u16 subset plus u32 indices, repeat wrapping and nearest/linear sampling.
| void rmgui_mesh_large_release | ( | rmgui_mesh_large_model_t * | model | ) |
Release the atlas and zero the header; NULL is safe.
| size_t rmgui_mesh_large_instance_size | ( | const rmgui_mesh_large_model_t * | model | ) |
Return complete aligned instance buffer bytes, or zero on overflow/NULL.
| rmgui_mesh_result_t rmgui_mesh_large_instance_init | ( | rmgui_mesh_large_instance_t * | out, |
| size_t | storage_size, | ||
| const rmgui_mesh_large_model_t * | model ) |
Set rest pose in caller-owned max_align_t-aligned storage including header.
Model must be loader-validated and immutable. No allocation; failure preserves the header and published pose, while scratch storage is unspecified. Do not relocate a loaded instance by copying its header.
| int rmgui_mesh_large_node_find | ( | const rmgui_mesh_large_model_t * | model, |
| const char * | name ) |
Return the index of an exact node name, or -1 for no match/NULL inputs.
| int rmgui_mesh_large_clip_find | ( | const rmgui_mesh_large_model_t * | model, |
| const char * | name ) |
As rmgui_mesh_clip_find: return a unique exact name match or -1.
Clip IDs are in glTF file order, including unnamed and duplicate clips.
| rmgui_mesh_result_t rmgui_mesh_large_sample_clip | ( | rmgui_mesh_large_instance_t * | instance, |
| int | clip, | ||
| float | seconds, | ||
| int | loop ) |
As rmgui_mesh_sample_clip: sample a clip ID or RMGUI_MESH_REST at a caller-supplied finite time.
Unkeyed transforms come from the model. Preserve visibility/UV offsets. No allocation; failure preserves the published pose, while scratch storage is unspecified.
| rmgui_mesh_result_t rmgui_mesh_large_visible | ( | rmgui_mesh_large_instance_t * | instance, |
| int | node, | ||
| int | visible ) |
Override a valid node's visibility; failure preserves the pose.
| rmgui_mesh_result_t rmgui_mesh_large_badge | ( | rmgui_mesh_large_instance_t * | instance, |
| int | count ) |
Clamp the badge count to 0..99 and update digit UV offsets/visibility.
Missing named badge nodes returns UNSUPPORTED without changing the pose.