VgaGames 3 - Window man-pages

[.. upper level ..]

VG3_window_new()

Open the window.
SYNTAX
void * VG3_window_new(const char *title, int vgaversion, int winscale)

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
winscale Window-scaling: one of the values of VGAG3_WINSCALES

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()