natiny_render_clear

C
void natiny_render_clear(float r, float g, float b, float a);

Clears the currently bound render target with the specified color.

Parameters

Name Type Description
r float Red channel (0.0 – 1.0)
g float Green channel (0.0 – 1.0)
b float Blue channel (0.0 – 1.0)
a float Alpha channel (0.0 – 1.0)

Example

C
natiny_render_clear(0.1f, 0.1f, 0.15f, 1.0f);

Notes

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