VG3_window_new()
Open the window.SYNTAX
void *
VG3_window_new(const char *arg0,
int vgaversion,
int winscale)
FUNCTION PARAMETERS
arg0 | The program parameter argv[0]. No chdir() must be called before. Used to determine the path of the game-program from where further files will be searched. If arg0 is NULL, the path of the game-program will be the current working-path "." |
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