nCine::DisplayMode class

Display properties.

Public types

enum class DoubleBuffering { Disabled, Enabled }
enum class VSync { Disabled, Enabled }

Constructors, destructors, conversion operators

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 redBits() const -> std::uint8_t
Returns the number of bits for the red channel.
auto greenBits() const -> std::uint8_t
Returns the number of bits for the green channel.
auto blueBits() const -> std::uint8_t
Returns the number of bits for the blue channel.
auto alphaBits() const -> std::uint8_t
Returns the number of bits for the alpha channel.
auto depthBits() const -> std::uint8_t
Returns the number of bits for the depth buffer.
auto stencilBits() const -> std::uint8_t
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.