hgeFont::printfb

Renders the formatted text string into a specified rectangle.

void printfb(
  float x,
  float y,
  float w,
  float h,
  int align,
  const char *format,
  ...
);

Parameters

x
The rectangle's top left corner x-coordinate.
y
The rectangle's top left corner y-coordinate.
w
The rectangle's width.
h
The rectangle's height.
align
Alignment specificator. May be one of these: HGETEXT_LEFT, HGETEXT_RIGHT, HGETEXT_CENTER bitwise or (|) combined with one of these: HGETEXT_TOP, HGETEXT_BOTTOM, HGETEXT_MIDDLE.
format
C language printf-style format specification.
...
Optional arguments list to be rendered to the screen.

Remarks

See your compiler online help or C language reference for details about format specification.

Requirements

Header: hgefont.h
Import library: hgehelp.lib

See also

Render, printfb