$darkmode
Functions | |
| void | ssbo_group_init (SSBOGroup *group, const SphereInstanceSSBO *data, int count) |
| Initializes an SSBO group with instance data. More... | |
| void | ssbo_group_bind_mesh (SSBOGroup *group, GLuint vbo, GLuint nbo, GLuint ebo) |
| Binds a mesh (VBO/EBO) to the SSBO VAO. More... | |
| void | ssbo_group_draw (SSBOGroup *group, size_t index_count) |
| Renders the group using instanced drawing. More... | |
| void | ssbo_group_cleanup (SSBOGroup *group) |
| Releases GPU resources. More... | |
| void ssbo_group_bind_mesh | ( | SSBOGroup * | group, |
| GLuint | vbo, | ||
| GLuint | nbo, | ||
| GLuint | ebo | ||
| ) |
Binds a mesh (VBO/EBO) to the SSBO VAO.
| group | Pointer to the struct. |
| vbo | Vertex buffer. |
| nbo | Normal buffer. |
| ebo | Element (index) buffer. |
| void ssbo_group_cleanup | ( | SSBOGroup * | group | ) |
Releases GPU resources.
| group | Pointer to the struct. |
| void ssbo_group_draw | ( | SSBOGroup * | group, |
| size_t | index_count | ||
| ) |
Renders the group using instanced drawing.
| group | Pointer to the struct. |
| index_count | Number of indices per sphere mesh. |
| void ssbo_group_init | ( | SSBOGroup * | group, |
| const SphereInstanceSSBO * | data, | ||
| int | count | ||
| ) |
Initializes an SSBO group with instance data.
| group | Pointer to the struct. |
| data | Array of instance data. |
| count | Number of instances. |