Browse Source

Add DrawTextEx convenience function

master
Kenneth Bruen 9 months ago
parent
commit
b5df9b480d
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 11
      src/raylib.zig

11
src/raylib.zig

@ -36,6 +36,17 @@ pub fn DrawAndMeasureText(
.height = 10,
};
}
pub fn DrawTextEx(
font: rl.Font,
text: [*c]const u8,
pos_x: f32,
pos_y: f32,
font_size: f32,
spacing: f32,
color: rl.Color,
) void {
rl.DrawTextEx(font, text, rl.Vector2{ .x = pos_x, .y = pos_y }, font_size, spacing, color);
}
pub fn DrawAndMeasureTextEx(
font: rl.Font,
text: [*c]const u8,

Loading…
Cancel
Save