VgaGames 3 - Video man-pages

[.. upper level ..]

VG3_image_text()

Create an image containing text.
SYNTAX
struct vg3_image * VG3_image_text(struct vg3_window *wstruct, struct vg3_text *stxt, int fcolor, int bcolor)

FUNCTION PARAMETERS
wstruct Window-struct
stxt Text
fcolor Foreground-color (from VGAG3_COLORS or VGAG3_COLOR_CUSTOM)
bcolor Background-color (from VGAG3_COLORS or VGAG3_COLOR_CUSTOM)

RETURN VALUE
Returns a pointer to the created text-image or NULL on failure.

ERRORS
On error VG3_errmsg() returns: EINVAL - error in argument ENOSYS - cannot create image ENOMEM - cannot get memory ENOENT - error loading fontfile

DESCRIPTION
Create an image from text and return pointer to it.

SEE ALSO
VG3_image_create() VG3_image_clone() VG3_image_clone_reference() VG3_image_load()