mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-11-05 23:55:37 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user