mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 14:45:46 +00:00
EGL: Replace native handle macros with functions
This change is in preparation both for EGL_EXT_platform_base and runtime GLFW platform selection. Related to #1691.
This commit is contained in:
@@ -1721,6 +1721,16 @@ const char* _glfwPlatformGetClipboardString(void)
|
||||
} // autoreleasepool
|
||||
}
|
||||
|
||||
EGLNativeDisplayType _glfwPlatformGetEGLNativeDisplay(void)
|
||||
{
|
||||
return EGL_DEFAULT_DISPLAY;
|
||||
}
|
||||
|
||||
EGLNativeWindowType _glfwPlatformGetEGLNativeWindow(_GLFWwindow* window)
|
||||
{
|
||||
return window->ns.layer;
|
||||
}
|
||||
|
||||
void _glfwPlatformGetRequiredInstanceExtensions(char** extensions)
|
||||
{
|
||||
if (_glfw.vk.KHR_surface && _glfw.vk.EXT_metal_surface)
|
||||
|
||||
Reference in New Issue
Block a user