MayaFlux 0.1.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 204 of file GlfwWindow.cpp.

205{
206#ifdef MAYAFLUX_PLATFORM_LINUX
207#if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
208 if (glfwGetPlatform() == GLFW_PLATFORM_WAYLAND) {
209 return glfwGetWaylandDisplay();
210 }
211#endif
212#if defined(GLFW_EXPOSE_NATIVE_X11)
213 if (glfwGetPlatform() == GLFW_PLATFORM_X11) {
214 return glfwGetX11Display();
215 }
216#endif
217#endif
218 return nullptr;
219}