/// <summary> /// Determines whether the specified <paramref name="window" /> is equal to this instance. /// </summary> /// <param name="window">A <see cref="NativeWindow" /> instance to compare for equality.</param> /// <returns><c>true</c> if objects represent the same window, otherwise <c>false</c>.</returns> public bool Equals(NativeWindow window) { if (ReferenceEquals(null, window)) { return(false); } return(ReferenceEquals(this, window) || GlfwWindow.Equals(window.GlfwWindow)); }
/// <inheritdoc cref="Object.GetHashCode" /> public override int GetHashCode() { return(GlfwWindow.GetHashCode()); }
public static extern IntPtr GetX11Window(GlfwWindow glfwWindow);
GetOSMesaDepthBuffer(GlfwWindow glfwWindow, out int width, out int height, out int bytesPerValue, out IntPtr buffer);
public static extern IntPtr GetWaylandWindow(GlfwWindow glfwWindow);
public static extern IntPtr GetWin32Window(GlfwWindow glfwWindow);
GetOSMesaColorBuffer(GlfwWindow glfwWindow, out int width, out int height, out int format, out IntPtr buffer);
public static extern EGLSurface GetEglSurface(GlfwWindow glfwWindow);
public static extern HGLRC GetWglContext(GlfwWindow glfwWindow);
public static extern EGLContext GetEglContext(GlfwWindow glfwWindow);
public static extern GLXContext GetGLXContext(GlfwWindow glfwWindow);
public static extern OSMesaContext GetOSMesaContext(GlfwWindow glfwWindow);
public static extern NSOpenGLContext GetNSGLContext(GlfwWindow glfwWindow);
public static extern IntPtr GetCocoaWindow(GlfwWindow glfwWindow);