Orrery
A GPU-accelerated N-body gravitational simulator
Loading...
Searching...
No Matches
orrery::viz::WindowOptions Struct Reference

How the window is created. More...

#include <orrery/viz/viewer_window.hpp>

Public Attributes

std::size_t width = 1280
std::size_t height = 720
std::string title = "Orrery"
bool visible = true
 Whether the window appears on screen.
bool vertical_sync = true
 Whether presenting waits for the display's refresh.

Detailed Description

How the window is created.

Member Data Documentation

◆ visible

bool orrery::viz::WindowOptions::visible = true

Whether the window appears on screen.

False for the offline export, which needs a context and not a picture.

◆ vertical_sync

bool orrery::viz::WindowOptions::vertical_sync = true

Whether presenting waits for the display's refresh.

On for the interactive viewer, where drawing faster than the screen refreshes wastes power to produce frames nobody sees, and off for the export, where the point is to finish.


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