Skip to content

cf_shader_reload

Category: draw
GitHub: cute_draw.h


Reloads a draw shader from its original file path.

bool cf_shader_reload(CF_Shader* shader);
Parameters Description
shader Pointer to the shader handle. Updated in-place on success.

Return Value

Returns true on success.

Remarks

Only works for shaders originally created with cf_make_draw_shader. The shader's path is recorded internally at creation time.

CF_Shader
cf_make_draw_shader
cf_destroy_shader