10 #ifndef SSBO_RENDERING_H
11 #define SSBO_RENDERING_H
14 #include <cglm/types.h>
Common OpenGL definitions, RAII helpers, and utilities.
void ssbo_group_draw(SSBOGroup *group, size_t index_count)
Renders the group using instanced drawing.
Definition: ssbo_rendering.c:62
void ssbo_group_bind_mesh(SSBOGroup *group, GLuint vbo, GLuint nbo, GLuint ebo)
Binds a mesh (VBO/EBO) to the SSBO VAO.
Definition: ssbo_rendering.c:35
void ssbo_group_init(SSBOGroup *group, const SphereInstanceSSBO *data, int count)
Initializes an SSBO group with instance data.
Definition: ssbo_rendering.c:7
void ssbo_group_cleanup(SSBOGroup *group)
Releases GPU resources.
Definition: ssbo_rendering.c:72
GPU resources for an SSBO-based render group.
Definition: ssbo_rendering.h:35
int instance_count
Definition: ssbo_rendering.h:38
GLuint vao
Definition: ssbo_rendering.h:37
GLuint ssbo
Definition: ssbo_rendering.h:36
Aligned structure for SSBO storage (std430 layout).
Definition: ssbo_rendering.h:22
float metallic
Definition: ssbo_rendering.h:25
vec3 albedo
Definition: ssbo_rendering.h:24
float roughness
Definition: ssbo_rendering.h:26
mat4 model
Definition: ssbo_rendering.h:23
float ao
Definition: ssbo_rendering.h:27