draw_string_oriented
September 8th 2024
Directly render text
Signature
Vec2_f32
draw_string_oriented(Application_Links* app,
Face_ID font_id,
ARGB_Color color,
String_Const_u8 str,
Vec2_f32 point,
u32 flags,
Vec2_f32 delta);
Parameters
app
the standard custom layer context pointer
font_id
the id of the face to use rendering the text
color
the color of the text
str
the text to be rendered
point
the position of the text, in pixels relative to the screen's top left corner
flags
flags determining the orientation of the string to render
delta
a unit vector specifying the direction along which the text advances
Return
the new point after advancing the point while laying out the text
Details
As a render function, this only takes effect during a call to the render hook.