check3d.Rd
Mostly for internal use, this function returns the current device number if one exists, or opens a new device and returns that.
.check3d()
The device number of an RGL device.
rgl.dev.list()
#> glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX
#> 5 7 9 11 13 15 16 17 20 21 26 27 30 32 33 34 36
.check3d()
#> glX
#> 36
rgl.dev.list()
#> glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX
#> 5 7 9 11 13 15 16 17 20 21 26 27 30 32 33 34 36
.check3d()
#> glX
#> 36
rgl.dev.list()
#> glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX glX
#> 5 7 9 11 13 15 16 17 20 21 26 27 30 32 33 34 36
close3d()