Beispiel #1
0
 /// <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));
 }
Beispiel #2
0
 /// <inheritdoc cref="Object.GetHashCode" />
 public override int GetHashCode()
 {
     return(GlfwWindow.GetHashCode());
 }
Beispiel #3
0
 public static extern IntPtr GetX11Window(GlfwWindow glfwWindow);
Beispiel #4
0
 GetOSMesaDepthBuffer(GlfwWindow glfwWindow, out int width, out int height, out int bytesPerValue,
                      out IntPtr buffer);
Beispiel #5
0
 public static extern IntPtr GetWaylandWindow(GlfwWindow glfwWindow);
Beispiel #6
0
 public static extern IntPtr GetWin32Window(GlfwWindow glfwWindow);
Beispiel #7
0
 GetOSMesaColorBuffer(GlfwWindow glfwWindow, out int width, out int height, out int format, out IntPtr buffer);
Beispiel #8
0
 public static extern EGLSurface GetEglSurface(GlfwWindow glfwWindow);
Beispiel #9
0
 public static extern HGLRC GetWglContext(GlfwWindow glfwWindow);
Beispiel #10
0
 public static extern EGLContext GetEglContext(GlfwWindow glfwWindow);
Beispiel #11
0
 public static extern GLXContext GetGLXContext(GlfwWindow glfwWindow);
Beispiel #12
0
 public static extern OSMesaContext GetOSMesaContext(GlfwWindow glfwWindow);
Beispiel #13
0
 public static extern NSOpenGLContext GetNSGLContext(GlfwWindow glfwWindow);
Beispiel #14
0
 public static extern IntPtr GetCocoaWindow(GlfwWindow glfwWindow);