nCine 2026.08.r1-e9a2342
A cross-platform 2D game engine
Loading...
Searching...
No Matches
ncine::AppConfiguration::Window Struct Reference

Window related configuration. More...

#include <AppConfiguration.h>

Collaboration diagram for ncine::AppConfiguration::Window:

Public Attributes

Vector2i resolution { 1280, 720 }
 The window size or the resolution of the closest video mode if going fullscreen.
 
float refreshRate = 0.0f
 The refresh rate of the screen mode used to go in fullscreen.
 
Vector2i position { IgnorePosition, IgnorePosition }
 The window position coordinates in the virtual screen made of all the connected monitors.
 
bool fullscreen = false
 Enables fullscreen mode for the application window.
 
bool resizable = false
 Allows the window to be resized by the user.
 
bool scaling = true
 Enables automatic window size scaling according to the display factor.
 
nctl::String title { 128 }
 The window title.
 
nctl::String iconFilename { 128 }
 The window icon filename.
 

Static Public Attributes

static const int IgnorePosition = 2147483647
 This special value can be used for window position coordinates when a specific position is not needed.
 

Detailed Description

Window related configuration.

Member Data Documentation

◆ position

Vector2i ncine::AppConfiguration::Window::position { IgnorePosition, IgnorePosition }

The window position coordinates in the virtual screen made of all the connected monitors.

Note
It can also be used to go fullscreen on a monitor that is not the primary one of the system.
The IgnorePosition value can be used in either or both coordinates when a specific position is not needed.

◆ refreshRate

float ncine::AppConfiguration::Window::refreshRate = 0.0f

The refresh rate of the screen mode used to go in fullscreen.

Note
If it is zero or negative, when requesting a fullscreen mode the current refresh rate will not be changed.

◆ resolution

Vector2i ncine::AppConfiguration::Window::resolution { 1280, 720 }

The window size or the resolution of the closest video mode if going fullscreen.

Note
If either x or y are zero or negative, the application will go in fullscreen at the current screen resolution.

The documentation for this struct was generated from the following file: