GL Screen device class More...
#include <Inventor/devices/SoGLScreenDevice.h>
Public Member Functions | |
SbVec2f | getPhysicalSize () const |
SbVec2i32 | getResolution () const |
unsigned int | getColorDepth () const |
SbString | getName () const |
SoGLDevice * | getGLDevice () const |
Friends | |
class | SoGLDevice |
std::ostream & | operator<< (std::ostream &os, const SoGLScreenDevice &dev) |
This class is used to query screen properties. You can query, for example, the resolution in pixels of the device. The list of screens connected to a GPU can be retrieved from the function SoGLDevice::getScreenDevice. The main screen connected to a GPU can be retrieved from the function SoGLDevice::getMainScreenDevice.
unsigned int SoGLScreenDevice::getColorDepth | ( | ) | const |
Returns the number of bits per pixel of the device.
SoGLDevice* SoGLScreenDevice::getGLDevice | ( | ) | const |
Returns the SoGLDevice object on which the device is connected.
SbString SoGLScreenDevice::getName | ( | ) | const |
Returns an user presentable string representing the device.
SbVec2f SoGLScreenDevice::getPhysicalSize | ( | ) | const |
Returns the device's physical size (in millimeters).
SbVec2i32 SoGLScreenDevice::getResolution | ( | ) | const |
Returns the device's resolution in pixels.
std::ostream& operator<< | ( | std::ostream & | os, | |
const SoGLScreenDevice & | dev | |||
) | [friend] |
Prints information about this device.
friend class SoGLDevice [friend] |