| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=c_int), | value | :: | n_vertices |
number of vertices |
||
| integer(kind=c_int), | value | :: | n_indices |
number of triangle indices |
||
| real(kind=c_float), | intent(in), | dimension(4) | :: | rgba |
color (rgba, 0 to 1; multiplies the texture) |
|
| type(c_ptr), | value | :: | texture |
image handles (vkf_image_read), or null |
||
| type(c_ptr), | value | :: | night_texture |
image handles (vkf_image_read), or null |
||
| integer(kind=c_int), | value | :: | flags |
1 for an unlit transparent surface (no textures), 2 for view lighting (frames' axes), else lit by the scene's lights with a material (vkf_mesh_material); plus 4 for vertices that change after the mesh is compiled (rewritten in place, then vkf_mesh_vertices_changed); plus 8 for a lit translucent surface (depth sorted: vkf_mesh_set_bound); plus 16 two-sided (lit: no faces culled); plus 32 a color per vertex (vkf_mesh_array 5; rgba each one's initial color) |