natiny_render_clear

C
void natiny_render_clear(NatinyColor color);

Clears the currently bound render target with the specified color.

Parameters

Name Type Description
color NatinyColor Packed color from natiny_color_from_rgba or natiny_color_from_hex

Example

C
natiny_render_clear(natiny_color_from_hex("#1a1a26"));

Notes

  • The clear value is applied when the current render pass begins. Call it before other draws intended for that pass.