Documentation

nvg::TextBox

Function

void nvg::TextBox(float x, float y, float w, const string&in str)

Draws text inside of a word wrapping box using the current font settings.

float x

The X position of the box.

float y

The Y position of the box.

float w

The width of the box. Word wrapping will be applied at this width.

string str

The text to draw.

void nvg::TextBox(const vec2&in pos, float w, const string&in str)

Draws text inside of a word wrapping box using the current font settings.

vec2 pos

The position of the box.

float w

The width of the box. Word wrapping will be applied at this width.

string str

The text to draw.