Lagrange
Viewer::WindowOptions Struct Reference

Window creation options. More...

#include <lagrange/ui/Viewer.h>

Public Attributes

std::string window_title = ""
 Window title.
 
int pos_x = -1
 Initial window X position. Set -1 for automatic position.
 
int pos_y = -1
 Initial window Y position. Set -1 for automatic position.
 
int width = 1024
 Initial window width.
 
int height = 768
 Initial window height.
 
bool window_fullscreen = false
 Maximizes window (with current resolution)
 
bool fullscreen = false
 Fullscreen mode - not recommended.
 
bool vsync = true
 Enable vertical sync to limit framerate.
 
int monitor_index = 0
 Which monitor to create window on.
 
int gl_version_major = 3
 Major OpenGL Version.
 
int gl_version_minor = 3
 Minor OpenGL Version.
 
bool focus_on_show = true
 Focus the window.
 
bool show_default_ibl = true
 Default Image Based Light environment map to load. More...
 
size_t default_ibl_resolution = 256
 
bool show_topbar_menu = true
 Enable rendering of the default menu.
 
std::string imgui_ini_path = ""
 Path to imgui .ini file If not set, the .ini file will be at APPDATA%/_window_title.ini.
 
Color selection_color = Color(252.0f / 255.0f, 86.0f / 255.0f, 3.0f / 255.0f, 1.0f)
 Color for selection silhouette.
 
bool use_srgb = true
 Use sRGB framebuffer if supported.
 

Detailed Description

Window creation options.

Member Data Documentation

◆ show_default_ibl

bool show_default_ibl = true

Default Image Based Light environment map to load.

For available ibls

See also
create_default_ibl()

Set to "" to disable ibl


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