QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Quasar::WindowSpecification Struct Reference

Settings used to create a window. More...

#include <quasar/core/Window.h>

Public Attributes

std::string Title = "QuasarEngine"
 Title of the window.
std::uint32_t Width = 1280
 Width of the window when it is created.
std::uint32_t Height = 720
 Height of the window when it is created.
bool VSync = true
 Whether vertical synchronization is enabled when it is created.
bool GraphicsContext = true
 Whether the window gets an OpenGL 4.5 core context.

Detailed Description

Settings used to create a window.

Only the fields that differ from the defaults need a value: Window::Create({.Title = "Editor"}).

Member Data Documentation

◆ GraphicsContext

bool Quasar::WindowSpecification::GraphicsContext = true

Whether the window gets an OpenGL 4.5 core context.

A window without one cannot draw anything: it is only meant for tests that run without a graphics driver.


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