natiny_render_text
void natiny_render_text(
NatinyFont font,
float x, float y,
const char* text
);
Draws text with the given font on the currently bound render target using the current draw color.
Parameters
| Name | Type | Description |
|---|---|---|
font |
NatinyFont |
Font handle from natiny_font_create |
x |
float |
X position in pixels |
y |
float |
Y position in pixels |
text |
const char* |
UTF-8 text to draw |
Example
natiny_render_text(font, 20.0f, 20.0f, "Score: 100");