Skip to content

cf_draw_set_uniform

Category: draw
GitHub: cute_draw.h


Pushes a uniform and binds it by name.

void cf_draw_set_uniform(const char* name, void* data, CF_UniformType type, int array_length);
Parameters Description
name The name of the uniform in the shader.
data A pointer to the data to send to the shader.
type The CF_UniformType of data to send.
array_length The number of elements of CF_UniformType to send.

cf_draw_set_texture
cf_draw_set_uniform_color
cf_draw_set_uniform_int
cf_draw_set_uniform_float
cf_draw_set_uniform_v2