VgaGames 3 - Miscellaneous man-pages

[.. upper level ..]

VG3_text_simpledraw()

[added in version 1.4]

Draw simplified a text onto an image or the window.
SYNTAX
struct vg3_rect VG3_text_simpledraw(struct vg3_window *wstruct, struct vg3_image *imgdst, const char *fontfile, int xm, int ym, const char *text, int fcolor, int bcolor, int flag)

FUNCTION PARAMETERS
wstruct Window-struct
imgdst Destination image, or NULL = window
fontfile Fontfile
xm Central x-position of the source on the destination
ym Central y-position of the source on the destination
text Text, may contain newlines
fcolor Foreground color (from VGAG3_COLORS or VGAG3_COLOR_CUSTOM)
bcolor Background color (from VGAG3_COLORS or VGAG3_COLOR_CUSTOM)
flag - 0: default
- 1: center all lines in the text

RETURN VALUE
Returns the coordinates of the text on the destination.

DESCRIPTION
Draw simplified a text onto an image or the window. Other than VG3_draw_text(), just a text and a centered output position is needed. The text may contain newlines.

SEE ALSO
VG3_draw_text() VG3_draw_textline() VG3_output_text() VG3_text_with_images()