cf_draw_elements_range¶
Category: graphics
GitHub: cute_graphics.h
Draws a contiguous element range of the last applied mesh.
| Parameters | Description |
|---|---|
first_element |
The first index (indexed meshes) or first vertex (non-indexed) to draw. |
element_count |
How many indices or vertices to draw. |
instance_count |
Instances to draw; pass 0 to inherit the mesh's instance count |
| (or the pending instance-buffer override's), like cf_draw_elements. |
Remarks¶
The workhorse for geometry arenas: pack many small meshes into one CF_Mesh and draw sub-ranges without rebinding anything between draws. There is deliberately no base-vertex parameter -- an indexed arena writes indices absolute into the shared vertex buffer, which keeps the call portable to GLES3. cf_draw3d_mesh_range builds on this to batch interleaved sub-mesh draws into one command.
Related Pages¶
cf_draw_elements
cf_draw_elements_instanced
cf_draw3d_mesh_range