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 glX 
#>   1   3   5   7   9  11  12  13  16  17  22  23  26  27  30  31  32  34 
.check3d()
#> glX 
#>  34 
rgl.dev.list()
#> glX 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  27  30  31  32  34 
.check3d()
#> glX 
#>  34 
rgl.dev.list()
#> glX 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  27  30  31  32  34 
rgl.close()