drawText

fnVec2 drawText(A...)(FontId font, InterpolationHeader header, A args, InterpolationFooter footer, Vec2 position, DrawOptions options = DrawOptions(), TextOptions extra = TextOptions())

Draws interpolated text with the given font at the given position using the provided draw options. The text is formatted from an interpolated expression string, e.g. drawText(font, i"Score: $(score)", position).

fnVec2 drawText(A...)(InterpolationHeader header, A args, InterpolationFooter footer, Vec2 position, DrawOptions options = DrawOptions(), TextOptions extra = TextOptions())

Draws interpolated text with the default font at the given position with the provided draw options. The text is formatted from an interpolated expression string, e.g. drawText(i"Score: $(score)", position). Call setDefaultFont before using this function.

fnVec2 drawText(FontId font, IStr text, Vec2 position, DrawOptions options = DrawOptions(), TextOptions extra = TextOptions()) @trusted @safe nothrow @nogc

Draws text with the given font at the given position using the provided draw options.

fnVec2 drawText(IStr text, Vec2 position, DrawOptions options = DrawOptions(), TextOptions extra = TextOptions()) @safe nothrow @nogc

Draws text with the default font at the given position with the provided draw options. Call setDefaultFont before using this function.