mirror of
https://github.com/PabloMK7/citra.git
synced 2025-09-10 12:50:04 +00:00
wayland: Move wayland files into common folder
This commit is contained in:
parent
5f1a26237b
commit
2a2281c2e1
25 changed files with 53 additions and 49 deletions
33
src/common/wayland/window_info.h
Normal file
33
src/common/wayland/window_info.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
#pragma once
|
||||
#include "common/common_types.h"
|
||||
|
||||
// Contains the information required to create a graphics context in a window.
|
||||
struct WindowInfo {
|
||||
enum class Type {
|
||||
Surfaceless,
|
||||
Win32,
|
||||
X11,
|
||||
Wayland,
|
||||
MacOS,
|
||||
Android,
|
||||
Display,
|
||||
};
|
||||
|
||||
enum class SurfaceFormat { None, Auto, RGB8, RGBA8, RGB565, Count };
|
||||
|
||||
Type type = Type::Surfaceless;
|
||||
void* display_connection = nullptr;
|
||||
void* window_handle = nullptr;
|
||||
citra::u32 surface_width = 0;
|
||||
citra::u32 surface_height = 0;
|
||||
float surface_refresh_rate = 0.0f;
|
||||
float surface_scale = 1.0f;
|
||||
SurfaceFormat surface_format = SurfaceFormat::RGB8;
|
||||
|
||||
// Needed for macOS.
|
||||
#ifdef __APPLE__
|
||||
void* surface_handle = nullptr;
|
||||
#endif
|
||||
|
||||
static bool QueryRefreshRateForWindow(const WindowInfo& wi, float* refresh_rate);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue