DisplayMode class
#include <nCine/Graphics/DisplayMode.h>
Describes the pixel format and buffering properties of a display surface.
Immutable set of attributes requested for or reported by an OpenGL context: the per-channel color bit depths, the depth and stencil buffer sizes, and whether double buffering and vertical sync are enabled.
Public types
Constructors, destructors, conversion operators
- DisplayMode()
-
DisplayMode(std::
uint8_t redBits, std:: uint8_t greenBits, std:: uint8_t blueBits) -
DisplayMode(std::
uint8_t redBits, std:: uint8_t greenBits, std:: uint8_t blueBits, std:: uint8_t alphaBits) -
DisplayMode(std::
uint8_t depthBits, std:: uint8_t stencilBits, DoubleBuffering dbMode, VSync vsMode) -
DisplayMode(std::
uint8_t redBits, std:: uint8_t greenBits, std:: uint8_t blueBits, std:: uint8_t alphaBits, std:: uint8_t depthBits, std:: uint8_t stencilBits, DoubleBuffering dbMode, VSync vsMode)
Public functions
-
auto GetRedBits() const -> std::
uint8_t - Returns the number of bits for the red channel.
-
auto GetGreenBits() const -> std::
uint8_t - Returns the number of bits for the green channel.
-
auto GetBlueBits() const -> std::
uint8_t - Returns the number of bits for the blue channel.
-
auto GetAlphaBits() const -> std::
uint8_t - Returns the number of bits for the alpha channel.
-
auto GetDepthBits() const -> std::
uint8_t - Returns the number of bits for the depth buffer.
-
auto GetStencilBits() const -> std::
uint8_t - Returns the number of bits for the stencil buffer.
- auto IsDoubleBuffered() const -> bool
- Returns whether the display is double buffered.
- auto HasVSync() const -> bool
- Returns whether the display has vertical sync enabled.