nCine::Backends::UwpGfxDevice class

The UWP graphics device (ANGLE/Mesa)

Base classes

class nCine::IGfxDevice
Represents the interface to the graphics device where everything is rendered.

Constructors, destructors, conversion operators

UwpGfxDevice(const WindowMode& windowMode, const GLContextInfo& glContextInfo, const DisplayMode& displayMode, const winrtWUC::CoreWindow& window)
~UwpGfxDevice()

Public functions

void update() override
Updates the screen swapping back and front buffers.
void setSwapInterval(int interval) override
Sets the number of vertical blanks to occur before a buffer swap.
void setResolution(bool fullscreen, int width = 0, int height = 0) override
Sets screen resolution with two integers.
void setWindowPosition(int x, int y) override
Sets the position of the application window with two integers.
void setWindowSize(int width, int height) override
Sets the window size with two integers.
void setWindowTitle(StringView windowTitle) override
Sets the application window title.
void setWindowIcon(StringView iconFilename) override
Sets the application window icon.
auto currentVideoMode(unsigned int monitorIndex) const -> const VideoMode& override
Returns the current video mode for the specified monitor.

Protected functions

void setResolutionInternal(int width, int height) override
void updateMonitors() override
Updates the array of connected monitors.

Function documentation

void nCine::Backends::UwpGfxDevice::setSwapInterval(int interval) override

Sets the number of vertical blanks to occur before a buffer swap.

An interval of -1 will enable adaptive v-sync if available

void nCine::Backends::UwpGfxDevice::setWindowSize(int width, int height) override

Sets the window size with two integers.