25 virtual void build()
override;
26 virtual void unbuild()
override;
virtual int bind_instance_group_data(int base_start, int link_start, int count) override
This function will be called by DI-Guy when variables for using the instance data needs to be sent to...
A class that represents an instance group. An instance group is a collection of meshes, attached to shapes, that can be drawn with a single draw call using supplemental instance data information. An instance group can contain segmented meshes or skinned mesh.
Definition: diguyGraphicsInstanceGroup.h:48
void create_link_matrices_tbo(int num_floats)
static GLuint s_link_matrices_tbo
Definition: diguyOglGraphicsInstanceGroup.h:37
static int s_tbo_size_in_floats
Definition: diguyOglGraphicsInstanceGroup.h:35
virtual void build() override
This function will be called by DI-Guy when it is time for a renderer specific instance group to be c...
void destroy_link_matrices_tbo()
diguyGraphicsInstanceGroup * diguyOglGraphicsInstanceGroup_create_func(void *internal_data)
Create function declaration.
virtual int bind_instance_buffer_data(int num_floats, const float *instance_data) override
This function will be called by DI-Guy when data for instance groups needs to be sent to the graphics...
virtual void unbuild() override
This function will be called by DI-Guy when it is time for a instance group to be destroyed...
static GLuint s_link_matrices_buffer
Definition: diguyOglGraphicsInstanceGroup.h:36
diguyOglGraphicsInstanceGroup(void *internal_data)
Definition: diguyOglGraphicsInstanceGroup.h:20