Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoGLScreenDevice Class Reference

VSG extension GL Screen device class More...

#include <Inventor/devices/SoGLScreenDevice.h>

Public Member Functions

SbVec2f getPhysicalSize () const
 Returns the device's physical size (in millimeters).
 
SbVec2i32 getResolution () const
 Returns the device's resolution in pixels.
 
unsigned int getColorDepth () const
 Returns the number of bits per pixel of the device.
 
SbString getName () const
 Returns an user presentable string representing the device.
 
SoGLDevicegetGLDevice () const
 Returns the SoGLDevice object on which the device is connected.
 

Friends

class SoGLDevice
 
std::ostream & operator<< (std::ostream &os, const SoGLScreenDevice &dev)
 Prints information about this device.
 

Detailed Description

VSG extension GL Screen device class

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.

SEE ALSO

SoGLDevice

Definition at line 48 of file SoGLScreenDevice.h.

Member Function Documentation

◆ getColorDepth()

unsigned int SoGLScreenDevice::getColorDepth ( ) const

Returns the number of bits per pixel of the device.

◆ getGLDevice()

SoGLDevice * SoGLScreenDevice::getGLDevice ( ) const

Returns the SoGLDevice object on which the device is connected.

◆ getName()

SbString SoGLScreenDevice::getName ( ) const

Returns an user presentable string representing the device.

◆ getPhysicalSize()

SbVec2f SoGLScreenDevice::getPhysicalSize ( ) const

Returns the device's physical size (in millimeters).

◆ getResolution()

SbVec2i32 SoGLScreenDevice::getResolution ( ) const

Returns the device's resolution in pixels.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const SoGLScreenDevice dev 
)
friend

Prints information about this device.

Definition at line 84 of file SoGLScreenDevice.h.

◆ SoGLDevice

friend class SoGLDevice
friend

Definition at line 50 of file SoGLScreenDevice.h.


The documentation for this class was generated from the following file: