VgaGames 3 - Window man-pages

[.. upper level ..]

VG3_window_new()

Open the window.
SYNTAX
struct vg3_window * VG3_window_new(const char *title, int vgaversion, int winflags)

FUNCTION PARAMETERS
title The window-title, or program parameter argv[0], which will take the program name as title.
vgaversion VGA-version: one of the values of VGAG3_VGAVERSIONS
winflags Window-flags, a OR-ed set of
- window-scaling: one of the values of VGAG3_WINSCALES
- audio-parameters: OR-ed values of VGAG3_AUDIOPARAMS, or 0

RETURN VALUE
Returns a pointer to the created window-struct or NULL on failure.

ERRORS
On error VG3_errmsg() returns: ENOMEM - cannot get memory ENOEXEC - cannot create window

DESCRIPTION
Create a new window, open it and return pointer to the created window-struct.

SEE ALSO
VG3_window_free()