Skip to content

Commit

Permalink
Implement getNativeWindowHandleType for GLFW
Browse files Browse the repository at this point in the history
  • Loading branch information
belegdol committed Aug 17, 2023
1 parent 6070dcb commit 29bfef6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/common/entry/entry_glfw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,19 @@ namespace entry
# endif // BX_PLATFORM_*
}

bgfx::NativeWindowHandleType::Enum getNativeWindowHandleType(WindowHandle _handle)
{
# if BX_PLATFORM_LINUX || BX_PLATFORM_BSD
# if ENTRY_CONFIG_USE_WAYLAND
return bgfx::NativeWindowHandleType::Wayland;
# else
return bgfx::NativeWindowHandleType::Default;
# endif // ENTRY_CONFIG_USE_WAYLAND
# else
return bgfx::NativeWindowHandleType::Default;
# endif // BX_PLATFORM_*
}

int32_t MainThreadEntry::threadFunc(bx::Thread* _thread, void* _userData)
{
BX_UNUSED(_thread);
Expand Down

0 comments on commit 29bfef6

Please sign in to comment.