Draws multiple objects reading vertex data from "pool". Section is an array of pointers to sections allocated from the pool. All sectons can only contain vertex data. Primitive_type is the primitive beeing drawn. Uniforms is a pointer to an array of uniform data. The data needs to be the size of the instance block (that can be obtained by calling r_shader_uniform_block_size) times the number of instances. Array_pool is an alternative way of feeding the draw call with unifom data using a array pool. Count is the number of objects being drawn.
r_array_references_draw
void r_array_references_draw(void *pool, void **section, RPrimitive primitive_type, void *uniforms, void *array_pool, uint count);
Description: Draws multiple objects reading vertex data from "pool". Section is an array of pointers to sections allocated from the pool. All sectons can only contain reference data. Primitive_type is the primitive beeing drawn. Uniforms is a pointer to an array of uniform data. The data needs to be the size of the instance block (that can be obtained by calling r_shader_uniform_block_size) times the number of instances. Array_pool is an alternative way of feeding the draw call with unifom data using a array pool. Count is the number of objects being drawn.Types:
Enum:
RPrimitive
R_PRIMITIVE_POINTS |
|
= |
|
0x0000 |
Description: Draw point primitives. |
R_PRIMITIVE_LINES |
|
= |
|
0x0001 |
Description: Draw Line primitives. |
R_PRIMITIVE_TRIANGLES |
|
= |
|
0x0004 |
Description: Draw Triangle primitives |