VgaGames4

VgaGames4 - window man-pages

[.. upper level ..]

# vg4->window->open()

Open window.

SYNTAX
VG_BOOL vg4->window->open(int size, int scale)
FUNCTION PARAMETERS

size | Size of the window: one of VG_WINDOW_SIZES
scale | Scaling of the window: one of VG_WINDOW_SCALES

RETURN VALUE
Returns boolean: - VG_TRUE: OK - VG_FALSE: Error
DESCRIPTION
Open window. The parameter size indicates the number of virtual pixels, the parameter scale indicates the scaling.
EXAMPLE

    if (!vg4->window->open(VG_WINDOW_SIZE_LOW, VG_WINDOW_SCALE_BEST)) {
      VG_dest();
      exit(1);
    }

SEE ALSO
vg4->window->size_extend() vg4->window->reopen() vg4->window->close() vg4->window->getsize() vg4->window->getparameters()