class
#include <nCine/Graphics/DisplayMode.h>
DisplayMode Display properties.
Public types
Constructors, destructors, conversion operators
- DisplayMode(unsigned char redBits, unsigned char greenBits, unsigned char blueBits)
- DisplayMode(unsigned char redBits, unsigned char greenBits, unsigned char blueBits, unsigned char alphaBits)
- DisplayMode(unsigned char depthBits, unsigned char stencilBits, DoubleBuffering dbMode, VSync vsMode)
- DisplayMode(unsigned char redBits, unsigned char greenBits, unsigned char blueBits, unsigned char alphaBits, unsigned char depthBits, unsigned char stencilBits, DoubleBuffering dbMode, VSync vsMode)
Public functions
- auto redBits() const -> unsigned char
- Returns the number of bits for the red channel.
- auto greenBits() const -> unsigned char
- Returns the number of bits for the green channel.
- auto blueBits() const -> unsigned char
- Returns the number of bits for the blue channel.
- auto alphaBits() const -> unsigned char
- Returns the number of bits for the alpha channel.
- auto depthBits() const -> unsigned char
- Returns the number of bits for the depth buffer.
- auto stencilBits() const -> unsigned char
- Returns the number of bits for the stencil buffer.
- auto isDoubleBuffered() const -> bool
- Returns true if the display is double buffered.
- auto hasVSync() const -> bool
- Returns true if the dislpay has V-sync enabled.