mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-10-23 23:55:42 +00:00
32 lines
516 B
C
32 lines
516 B
C
|
#pragma once
|
||
|
|
||
|
// Contains the information required to create a graphics context in a window.
|
||
|
struct WindowInfo
|
||
|
{
|
||
|
enum class Type
|
||
|
{
|
||
|
Surfaceless,
|
||
|
Win32,
|
||
|
X11,
|
||
|
Wayland,
|
||
|
MacOS,
|
||
|
Android
|
||
|
};
|
||
|
|
||
|
enum class SurfaceFormat
|
||
|
{
|
||
|
None,
|
||
|
RGB8,
|
||
|
RGBA8,
|
||
|
RGB565,
|
||
|
Count
|
||
|
};
|
||
|
|
||
|
Type type = Type::Surfaceless;
|
||
|
void* display_connection = nullptr;
|
||
|
void* window_handle = nullptr;
|
||
|
u32 surface_width = 0;
|
||
|
u32 surface_height = 0;
|
||
|
SurfaceFormat surface_format = SurfaceFormat::RGB8;
|
||
|
};
|