A list of all available video modes.
More...
#include <duckcpp/core/engine/IVideoModeList.hpp>
A list of all available video modes.
You can get a list via DuckcppDevice::getVideoModeList(). You only need the null device (EDT_NULL) to get the video-modes.
◆ getDesktopDepth()
virtual dcpp::int32_kt dcpp::video::IVideoModeList::getDesktopDepth |
( |
| ) |
const |
|
pure virtual |
Get the pixel depth of a video mode in bits.
- Returns
- Size of each pixel of the current desktop video mode in bits.
◆ getDesktopResolution()
Get current desktop screen resolution.
- Returns
- Size of screen in pixels of the current desktop video mode.
◆ getVideoModeCount()
virtual dcpp::int32_kt dcpp::video::IVideoModeList::getVideoModeCount |
( |
| ) |
const |
|
pure virtual |
Gets amount of video modes in the list.
- Returns
- Returns amount of video modes.
◆ getVideoModeDepth()
Get the pixel depth of a video mode in bits.
- Parameters
-
modeNumber | zero based index of the video mode. |
- Returns
- Size of each pixel of the specified video mode in bits.
◆ getVideoModeResolution() [1/2]
Get a supported screen size with certain constraints.
- Parameters
-
minSize | Minimum dimensions required. |
maxSize | Maximum dimensions allowed. |
- Returns
- Size of screen in pixels which matches the requirements. as good as possible.
◆ getVideoModeResolution() [2/2]
Get the screen size of a video mode in pixels.
- Parameters
-
modeNumber | zero based index of the video mode. |
- Returns
- Size of screen in pixels of the specified video mode.
The documentation for this class was generated from the following file: