#include <nglVideoMode.h>
This class let you find suitable resolutions for fullscreen rendering windows (see nglWindowInfo for more details).
Public Member Functions | |
Life cycle | |
| nglVideoMode () | |
| nglVideoMode (const nglVideoMode &rMode) | |
| ~nglVideoMode () | |
Properties | |
| uint | GetWidth () const |
| uint | GetHeight () const |
| uint | GetDepth () const |
| uint | GetFrequency () const |
| nglString | Dump () const |
Static Public Member Functions | |
Requesters | |
| static bool | Enum (nglVideoMode &rMode, uint Index) |
| static bool | Find (nglVideoMode &rMode, uint Width, uint Height, uint Depth=0, uint Frequency=0) |
Friends | |
| class | nglApplication |
| class | nglWindow |
|
|
Get the current video mode. If you want to request other video modes, you must use the static 'requesters' methods Enum() or Find(). The current video mode is useful to obtain the current desktop dimensions, and/or to switch to fullscreen mode without changing the desktop resolution. |
|
|
Copy constructor.
|
|
|
|
|
|
Dumps a textual description.
|
|
||||||||||||
|
Enumerate available video modes.
nglVideoMode mode; int i = 0; while (nglVideoMode::Get(i, mode)) { i++; NGL_OUT("Mode #%d: %dx%dx%d - vertical refreh: %d Hz", i, mode.GetWidth(), pmode.GetHeight(), pmode.GetDepth(), pmode.GetVFrequency()); } |
|
||||||||||||||||||||||||
|
Find a video mode.
|
|
|
Color bits per pixel.
|
|
|
Vertical monitor refresh rate in Hz.
|
|
|
Vertical resolution in pixels.
|
|
|
Horizontal resolution in pixels.
|
|
|
|
|
|
|
1.4.1