HUDText Interface

public interface HUDText

The HUDText constructor: HUDText(...) makes one (see new_hud_text for its arguments).

Calls

interface~~hudtext~~CallsGraph interface~hudtext HUDText proc~new_hud_text new_hud_text interface~hudtext->proc~new_hud_text proc~set_color HUDText%set_color proc~new_hud_text->proc~set_color

Module Procedures

private function new_hud_text(text, position, alignment, size, color, font) result(h)

HUD text text, optionally at position ([x, y], 0 to 1; default near the bottom left), with alignment (default ALIGN_LEFT_BOTTOM), size (window units; default 20), color ([r, g, b] or [r, g, b, a]; default white) and font (default: the default font).

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: text

the text

real(kind=wp), intent(in), optional :: position(2)

[x, y] (0 to 1 across the window, y up)

integer, intent(in), optional :: alignment

an ALIGN_* constant

real(kind=wp), intent(in), optional :: size

character height (window units)

real(kind=wp), intent(in), optional :: color(:)

[r, g, b] or [r, g, b, a] (0 to 1)

character(len=*), intent(in), optional :: font

font file

Return Value type(HUDText)