Class SoGLDevice
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.devices.SoDevice
com.openinventor.inventor.devices.SoGLDevice
OpenGL device management class.
This class provides functions to discover, and query information about, GPU devices available in the system through the OpenGL API. You can query, for example, the total memory available on the device.
Please see SoDevice
for general information about the device classes.
See SoGLScreenDevice
for information about displays attached to a GPU.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptionstatic SoGLDevice
Returns the first available device found in the system.static SoGLDevice
getDevice
(int index) Returns theSoGLDevice
indicated by index (starting from 0).static int
Returns the number of GPUs on the sytem.Returns an handle of the driver API allowing to modify profile of this device.Returns the main screen device connected to the GL device.getScreenDevice
(int index) Returns theSoGLScreenDevice
indicated by index (starting from 0).int
Returns the number of screen devices connected to the GL device.Methods inherited from class com.openinventor.inventor.devices.SoDevice
getDeviceName, getDriverVersion, getLogicalUnits
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
getScreenDevicesCount
public int getScreenDevicesCount()Returns the number of screen devices connected to the GL device. -
getDevicesCount
public static int getDevicesCount()Returns the number of GPUs on the sytem. -
getMainScreenDevice
Returns the main screen device connected to the GL device. -
getDeviceSettings
Returns an handle of the driver API allowing to modify profile of this device. The return is depending of the driver manufacturer (NVidia, AMD, Intel...). Returns NULL if the API is not available. E.g.: For Intel driver, NULL is always returned. -
getDevice
Returns theSoGLDevice
indicated by index (starting from 0).- Parameters:
index
- The index of theSoGLDevice
.
-
findFirstAvailableDevice
Returns the first available device found in the system. Since Open Inventor version 9.7.2, this is guaranteed to be the device that Open Inventor will actually use for rendering. -
getScreenDevice
Returns theSoGLScreenDevice
indicated by index (starting from 0).- Parameters:
index
- The index of theSoGLScreenDevice
.
-