Skip to content

cf_mesh_set_instance_buffer

Category: graphics
GitHub: cute_graphics.h


Sets up an instance buffer on the mesh, for instanced style rendering.

void cf_mesh_set_instance_buffer(CF_Mesh mesh, int instance_buffer_size_in_bytes, int instance_stride);
Parameters Description
mesh The mesh.
instance_buffer_size_in_bytes The size of the mesh's index buffer.
instance_stride The number of bytes for each instance data.

CF_Mesh
cf_make_mesh
cf_mesh_update_instance_data