|
Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
|
#include <tfApplication.h>
Public Types | |
| enum | WindowFlag { None = 0 , Fullscreen = 1 << 0 , Resizable = 1 << 1 , Hidden = 1 << 2 , Maximized = 1 << 3 , Minimized = 1 << 4 , Floating = 1 << 5 , AutoIconify = 1 << 6 , Focused = 1 << 7 , Contextless = 1 << 8 } |
| Window flag. More... | |
| enum class | DpiScalingPolicy { Framebuffer , Virtual , Physical , Default } |
| DPI scaling policy. More... | |
Public Attributes | |
| unsigned | windowFlag = 0 |
Set config options for opengl for now.
|
strong |
DPI scaling policy.
DPI scaling policy when requesting a particular window size. Can be overriden on command-line using --magnum-dpi-scaling or via the MAGNUM_DPI_SCALING environment variable.
| Enumerator | |
|---|---|
| Framebuffer | Framebuffer DPI scaling. The window will have the same size as requested, but the framebuffer size will be different. Supported only on macOS and iOS and is also the only supported value there. |
| Virtual | Virtual DPI scaling. Scales the window based on UI scaling setting in the system. Falls back to DpiScalingPolicy::Physical on platforms that don't support it. Supported only on desktop platforms (except macOS) and it's the default there. Equivalent to |
| Physical | Physical DPI scaling. Takes the requested window size as a physical size that a window would have on platform's default DPI and scales it to have the same size on given display physical DPI. On platforms that don't have a concept of a window it causes the framebuffer to match screen pixels 1:1 without any scaling. Supported on desktop platforms except macOS and on mobile and web. Default on mobile and web. Equivalent to |
| Default | Default policy for current platform. Alias to one of DpiScalingPolicy::Framebuffer, DpiScalingPolicy::Virtual or DpiScalingPolicy::Physical depending on platform. See Platform-Sdl2Application-dpi for details. |
Window flag.
| Enumerator | |
|---|---|
| Fullscreen | Fullscreen window |
| Resizable | Resizable window |
| Hidden | Hidden window |
| Minimized | Minimized window |
| Floating | Window floating above others, top-most |
| AutoIconify | Automatically iconify (minimize) if fullscreen window loses input focus |
| Focused | Window has input focus |
| Contextless | Do not create any GPU context. Use together with GlfwApplication(const Arguments&), GlfwApplication(const Arguments&, const Configuration&), create(const Configuration&) or tryCreate(const Configuration&) to prevent implicit creation of an OpenGL context.
|