[X11] Added glXQueryVersion DllImport.

This commit is contained in:
thefiddler 2014-06-15 14:30:40 +02:00
parent 9075129df0
commit 9d840e5969

View file

@ -344,9 +344,9 @@ namespace OpenTK.Platform.X11
[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);
@ -356,6 +356,9 @@ namespace OpenTK.Platform.X11
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);