|
RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
|
Allocation-free large-scene CPU rasterization with caller-owned scratch. More...
Functions | |
| size_t | rmgui_mesh_large_scratch_size (const rmgui_mesh_large_model_t *model, int width, int height, int supersample) |
| Return aligned scratch bytes for the actual model vertex count and requested dimensions/sampling, or zero for invalid/excessive inputs. | |
| rmgui_mesh_result_t | rmgui_mesh_large_paint (rmgui_fb_t *fb, rmgui_rect_t rect, rmgui_rect_t clip, const rmgui_mesh_large_instance_t *instance, const rmgui_mesh_camera_t *camera, const rmgui_mesh_style_t *style, void *scratch, size_t scratch_size) |
| Same pixel, camera, cel and transactional refusal contract as mesh_paint. | |
Allocation-free large-scene CPU rasterization with caller-owned scratch.
| size_t rmgui_mesh_large_scratch_size | ( | const rmgui_mesh_large_model_t * | model, |
| int | width, | ||
| int | height, | ||
| int | supersample ) |
Return aligned scratch bytes for the actual model vertex count and requested dimensions/sampling, or zero for invalid/excessive inputs.
| rmgui_mesh_result_t rmgui_mesh_large_paint | ( | rmgui_fb_t * | fb, |
| rmgui_rect_t | rect, | ||
| rmgui_rect_t | clip, | ||
| const rmgui_mesh_large_instance_t * | instance, | ||
| const rmgui_mesh_camera_t * | camera, | ||
| const rmgui_mesh_style_t * | style, | ||
| void * | scratch, | ||
| size_t | scratch_size ) |
Same pixel, camera, cel and transactional refusal contract as mesh_paint.
The model must remain live, loader-validated and immutable; static geometry validation is not repeated per frame. Pose/camera/style validation is complete. UVs are immutable model UVs plus per-primitive instance offsets. Atlas filtering is base-level nearest/bilinear; REPEAT wraps each texel tap and bilinear RGB interpolation follows sRGB decoding. Scratch must be aligned to max_align_t, sized by the large query, and disjoint from all inputs and framebuffer/geometry/atlas allocations. No allocation or retained state.