Allow simultaneous X11 and Wayland support (#3152)

* Allow simultaneous X11 and Wayland support

* Add NativeWindowHandleType

* Set default value for g_platformData.type

* Use g_platformData.type to check for a native Wayland window

* Stub getNativeWindowHandleType on platform where Wayland is not an option

* Implement getNativeWindowHandleType for GLFW

* Add getNativeWindowHandleType to the remaining C++ examples

* Add getNativeWindowHandleType to the C example
This commit is contained in:
Julian Sikorski
2023-08-17 16:54:31 +02:00
committed by GitHub
parent a16f603e3c
commit f4d463990a
64 changed files with 240 additions and 65 deletions

View File

@@ -550,6 +550,11 @@ namespace entry
return NULL;
}
bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle)
{
return bgfx::NativeWindowHandleType::Default;
}
int32_t MainThreadEntry::threadFunc(bx::Thread* _thread, void* _userData)
{
BX_UNUSED(_thread);