Draws the text last given to prepare_text, so a text drawn many times is laid out once.
- font: the font the text was prepared with.
- x: where the text starts.
- y: the baseline of the text.
- color: white by default.
- effects: the same flags the text was prepared with.
font := load_font("", "Roboto-Regular.ttf", 24);
prepare_text(font, "Paused");
draw_prepared_text(font, 20, 40);
draw_prepared_text(font, 20, 80, .{1, 0.5, 0.5, 1});This one is only checked to compile, not run.
draw_prepared_text :: (
font: *Dynamic_Font,
x: s64,
y: s64,
color := Vector4.{ 1, 1, 1, 1 },
effects: Font_Effects = 0
)
Draws the text last given to prepare_text, so a text drawn many times is laid out once.
Parameters
- font: *Dynamic_Font
- the font the text was prepared with.
- x: s64
- where the text starts.
- y: s64
- the baseline of the text.
- color := Vector4.{ 1, 1, 1, 1 }
- white by default.
- effects: Font_Effects = 0
- the same flags the text was prepared with.
font := load_font("", "Roboto-Regular.ttf", 24);
prepare_text(font, "Paused");
draw_prepared_text(font, 20, 40);
draw_prepared_text(font, 20, 80, .{1, 0.5, 0.5, 1});This one is only checked to compile, not run.