Class SoGLDevice
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.devices.SoDevice
-
- com.openinventor.inventor.devices.SoGLDevice
-
public class SoGLDevice extends SoDevice
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
SoDevicefor general information about the device classes.See
SoGLScreenDevicefor information about displays attached to a GPU.- See Also:
SoCpuDevice,SoGLBufferObject,SoGLContext,SoGLScreenDevice
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SoGLDevicefindFirstAvailableDevice()Returns the first available device found in the system.static SoGLDevicegetDevice(int index)Returns theSoGLDeviceindicated by index (starting from 0).static intgetDevicesCount()Returns the number of GPUs on the sytem.SoGLDeviceSettingsgetDeviceSettings()Returns an handle of the driver API allowing to modify profile of this device.SoGLScreenDevicegetMainScreenDevice()Returns the main screen device connected to the GL device.SoGLScreenDevicegetScreenDevice(int index)Returns theSoGLScreenDeviceindicated by index (starting from 0).intgetScreenDevicesCount()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 Detail
-
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
public SoGLScreenDevice getMainScreenDevice()
Returns the main screen device connected to the GL device.
-
getDeviceSettings
public SoGLDeviceSettings 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
public static SoGLDevice getDevice(int index)
Returns theSoGLDeviceindicated by index (starting from 0).- Parameters:
index- The index of theSoGLDevice.
-
findFirstAvailableDevice
public static SoGLDevice 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
public SoGLScreenDevice getScreenDevice(int index)
Returns theSoGLScreenDeviceindicated by index (starting from 0).- Parameters:
index- The index of theSoGLScreenDevice.
-
-