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