MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_native_display()

void * MayaFlux::Core::GlfwWindow::get_native_display ( ) const
overridevirtual

Get native display handle (platform-specific)

Returns
Pointer to the native display handle

Implements MayaFlux::Core::Window.

Definition at line 214 of file GlfwWindow.cpp.

215{
216#ifdef MAYAFLUX_PLATFORM_LINUX
217#if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
218 if (glfwGetPlatform() == GLFW_PLATFORM_WAYLAND) {
219 return glfwGetWaylandDisplay();
220 }
221#endif
222#if defined(GLFW_EXPOSE_NATIVE_X11)
223 if (glfwGetPlatform() == GLFW_PLATFORM_X11) {
224 return glfwGetX11Display();
225 }
226#endif
227#endif
228 return nullptr;
229}