HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
gfx_surface_state.hpp
1// Copyright Take Vos 2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include "../macros.hpp"
8
9hi_export_module(hikogui.GFX : gfx_surface_state);
10
11hi_export namespace hi::inline v1 {
12
19
20enum class gfx_surface_loss {
21 none,
25};
26
27}
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
gfx_surface_state
Definition gfx_surface_state.hpp:13
@ has_window
The initial state: The surface is associated with a window.
@ has_device
The surface has been associated with a device to use for rendering.
@ has_swapchain
Images to render on to display on the surface are created.
@ no_window
The window was destroyed, the device will drop the window on the next render cycle.
gfx_surface_loss
Definition gfx_surface_state.hpp:20
@ device_lost
The device was lost, but the window could move to a new device, or the device can be recreated.
@ window_lost
The surface or window was destroyed, need to cleanup.
@ swapchain_lost
The window was resized, the swapchain needs to be rebuild and can not be rendered on.