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()
#> null null null null null null null null null null null null null null null null 
#>    1    3    5    7    9   11   12   13   16   17   22   23   26   28   29   30 
#> null 
#>   32 
.check3d()
#> null 
#>   32 
rgl.dev.list()
#> null null null null null null null null null null null null null null null null 
#>    1    3    5    7    9   11   12   13   16   17   22   23   26   28   29   30 
#> null 
#>   32 
.check3d()
#> null 
#>   32 
rgl.dev.list()
#> null null null null null null null null null null null null null null null null 
#>    1    3    5    7    9   11   12   13   16   17   22   23   26   28   29   30 
#> null 
#>   32 
close3d()