Added glXSwapIntervalSGI method.

This commit is contained in:
the_fiddler 2008-01-23 00:01:03 +00:00
parent 448e3a476f
commit 9551a569c2
2 changed files with 40 additions and 15 deletions

View file

@ -37,12 +37,13 @@ namespace OpenTK.Platform.X11
using GLdouble = System.Double; using GLdouble = System.Double;
using GLclampd = System.Double; using GLclampd = System.Double;
using GLstring = System.String; using GLstring = System.String;
using System.Security;
#endregion #endregion
/// <summary> /// <summary>
/// Provides access to GLX functions. /// Provides access to GLX functions.
/// </summary> /// </summary>
public static partial class Glx partial class Glx
{ {
#region Enums #region Enums
@ -315,5 +316,20 @@ namespace OpenTK.Platform.X11
#endregion #endregion
#endregion #endregion
public partial class Sgi
{
public static int SwapIntervalSGI(int interval)
{
return Delegates.glXSwapIntervalSGI(interval);
}
}
partial class Delegates
{
[SuppressUnmanagedCodeSecurity]
internal delegate int SwapIntervalSGI(int interval);
internal static SwapIntervalSGI glXSwapIntervalSGI = null;
}
} }
} }

View file

@ -10,63 +10,72 @@ using System.Text;
namespace OpenTK.Platform.X11 namespace OpenTK.Platform.X11
{ {
public static partial class Glx internal static partial class Glx
{ {
internal const string Library = "libGL.so.1"; internal const string Library = "libGL.so.1";
// Disable BeforeFieldInit optimization. // Disable BeforeFieldInit optimization.
static Glx() { } static Glx() { }
#region internal static void LoadAll
internal static void LoadAll()
{
OpenTK.Platform.Utilities.LoadExtensions(typeof(Glx));
}
#endregion
} }
public struct Status internal struct Status
{ {
} }
public struct GLXFBConfig internal struct GLXFBConfig
{ {
} }
public struct GLXPbuffer internal struct GLXPbuffer
{ {
} }
public struct GLXContextID internal struct GLXContextID
{ {
} }
public struct GLXHyperpipeNetworkPointer internal struct GLXHyperpipeNetworkPointer
{ {
} }
public struct GLXHyperpipeConfig internal struct GLXHyperpipeConfig
{ {
} }
public struct GLXHyperpipeConfigSGIX internal struct GLXHyperpipeConfigSGIX
{ {
} }
public struct GLXHyperpipeConfigPointer internal struct GLXHyperpipeConfigPointer
{ {
} }
public struct GLXVideoSourceSGIX internal struct GLXVideoSourceSGIX
{ {
} }
public struct GLXFBConfigSGIX internal struct GLXFBConfigSGIX
{ {
} }
public struct GLXPbufferSGIX internal struct GLXPbufferSGIX
{ {
} }
public struct DMparams internal struct DMparams
{ {
} }
public struct DMbuffer internal struct DMbuffer
{ {
} }
} }