Mostly for internal use, this function returns the current device number if one exists, or opens a new device and returns that.

.check3d()

Value

The device number of an RGL device.

Author

Duncan Murdoch

See also

Examples

rgl.dev.list()
#> glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX 
#>   1   3   5   7   9  11  12  13  16  17  22  23  26  28  29  30  32 
.check3d()
#> glX 
#>  32 
rgl.dev.list()
#> glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX 
#>   1   3   5   7   9  11  12  13  16  17  22  23  26  28  29  30  32 
.check3d()
#> glX 
#>  32 
rgl.dev.list()
#> glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX 
#>   1   3   5   7   9  11  12  13  16  17  22  23  26  28  29  30  32 
close3d()