Skip to content

Commit

Permalink
[X11] Added glXQueryVersion DllImport.
Browse files Browse the repository at this point in the history
  • Loading branch information
thefiddler committed Jun 15, 2014
1 parent 9075129 commit 9d840e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Source/OpenTK/Platform/X11/Bindings/Glx.cs
Expand Up @@ -344,9 +344,9 @@ internal static bool SupportsFunction(string name)

[DllImport(Library, EntryPoint = "glXQueryDrawable")]
public static extern ErrorCode QueryDrawable(IntPtr dpy, IntPtr drawable, GLXAttribute attribute, out int value);

[DllImport(Library, EntryPoint = "glXQueryExtension")]
public static extern bool QueryExtension(IntPtr dpy, ref int errorBase, ref int eventBase);
public static extern bool QueryExtension(IntPtr dpy, out int errorBase, out int eventBase);

[DllImport(Library, EntryPoint = "glXQueryExtensionsString")]
static extern IntPtr QueryExtensionsStringInternal(IntPtr dpy, int screen);
Expand All @@ -356,6 +356,9 @@ public static string QueryExtensionsString(IntPtr dpy, int screen)
return Marshal.PtrToStringAnsi(QueryExtensionsStringInternal(dpy, screen));
}

[DllImport(Library, EntryPoint = "glXQueryVersion")]
public static extern bool QueryVersion(IntPtr dpy, out int major, out int minor);

[DllImport(Library, EntryPoint = "glXCreateContext")]
public static extern IntPtr CreateContext(IntPtr dpy, IntPtr vis, IntPtr shareList, bool direct);

Expand Down

0 comments on commit 9d840e5

Please sign in to comment.