Unigine::Displays Class
Header: | #include <UnigineDisplays.h> |
Displays Class
Members
int getMain ( ) const#
Returns the main system display index.Return value
Index of the main system display.int getDefaultSystemDPI ( ) const#
Returns the default system dots/pixels-per-inch value.Return value
Dots/pixels-per-inch value.int getNum ( ) const#
Returns the number of available video displays.Return value
Number of available video displays.Math::ivec2 getPosition ( int display_index ) const#
Returns the display position by its index.Arguments
- int display_index - Display index.
Return value
Display position.Math::ivec2 getResolution ( int display_index ) const#
Returns the display resolution by its index.Arguments
- int display_index - Display index.
Return value
Display resolution.int getDPI ( int display_index ) const#
Returns the display DPI by its index.Arguments
- int display_index - Display index.
Return value
Display DPI.Math::ivec2 getCurrentModeResolution ( int display_index ) const#
Returns the resolution of the current display mode.Arguments
- int display_index - Display index.
Return value
Display mode resolution.int getCurrentModeRefreshRate ( int display_index ) const#
Returns the refresh rate of the current display mode.Arguments
- int display_index - Display index.
Return value
Refresh rate of the current display mode.int getNumModes ( int display_index ) const#
Returns the total number of available display modes.Arguments
- int display_index - Display index.
Return value
Number of available display modes.Math::ivec2 getModeResolution ( int display_index, int mode_index ) const#
Returns the resolution of the selected display mode for the selected display.Arguments
- int display_index - Display index.
- int mode_index - Index of the display mode.
Return value
Resolution.int getModeRefreshRate ( int display_index, int mode_index ) const#
Returns the refresh rate of the specified display mode.Arguments
- int display_index - Display index.
- int mode_index - Index of the display mode.
Return value
Refresh rate of the specified display mode.const char * getName ( int display_index ) const#
Returns the system name of the display.Arguments
- int display_index - Display index.
Return value
System name of the display.Last update:
2022-07-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)