CRopen: Initialize graphics and related structures.

Description Usage Arguments Details Value Examples

Description

Open window, intitialize graphics structures, create event for polling event queue, measure timer lag etc.

Usage

1
CRopen(x = 0, y = 0, w = 0, h = 0)

Arguments

x

X position of window.

y

Y position of window.

w

width of window.

h

height of window.

Details

CRopen calls SDL functions to open a window, get window surface and renderer, and initialize R pointers to structures required later; with default arguments x = y = w = h = 0, a full-screen window is opened.

Value

Returns a graphics_list containing pointers to graphics structures and integers of width and height of window, as well as timer resolution and timer lag.

Examples

1
2
    graph <- CRopen( 50, 50, 500, 500 )
    CRclose( graph )

lorweiuk/CREx documentation built on May 30, 2019, 3:44 p.m.