Documentation

nvg::Text

Function

float nvg::Text(float x, float y, const string&in str)

Draws text using the current font settings.

float x

The X position of the text.

float y

The Y position of the text.

string str

The text to draw.

Returns float
float nvg::Text(const vec2&in pos, const string&in str)

Draws text using the current font settings.

vec2 pos

The position of the text.

string str

The text to draw.

Returns float