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
+5
View File
@@ -427,6 +427,11 @@ namespace entry
{
return NULL;
}
bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle)
{
return bgfx::NativeWindowHandleType::Default;
}
}
int main(int _argc, const char* const* _argv)