Skip to content

cf_make_mesh

Category: graphics
GitHub: cute_graphics.h


Returns a CF_Mesh.

CF_Mesh cf_make_mesh(int vertex_buffer_size_in_bytes, const CF_VertexAttribute* attributes, int attribute_count, int vertex_stride);
Parameters Description
vertex_buffer_size_in_bytes The size of the mesh's vertex buffer.
attributes Vertex attributes to define the memory layout of the mesh vertices.
attribute_count Number of attributes in attributes.
vertex_stride Number of bytes between each vertex.

Remarks

The max number of attributes is CF_MESH_MAX_VERTEX_ATTRIBUTES (32). Any more attributes beyond 32 will be ignored.

CF_Mesh
cf_mesh_set_instance_buffer
cf_destroy_mesh
cf_mesh_update_vertex_data
cf_mesh_set_index_buffer