Skip to content

cf_draw_set_texture

Category: draw
GitHub: cute_draw.h


Pushes a texture onto a texture slot by name.

void cf_draw_set_texture(const char* name, CF_Texture texture);
Parameters Description
name The name of the uniform this texture will bind to.
texture The texture to bind.

Remarks

This is useful for custom shaders. See cf_draw_push_shader. Applies to 2d drawing only -- meshes use cf_draw3d_set_texture.

cf_draw_set_uniform_color
cf_draw_set_uniform
cf_draw_set_uniform_int
cf_draw_set_uniform_float
cf_draw_set_uniform_v2