Added glXSwapIntervalSGI method.
This commit is contained in:
parent
5598019f01
commit
2f2b7532e2
2 changed files with 40 additions and 15 deletions
|
@ -37,12 +37,13 @@ namespace OpenTK.Platform.X11
|
|||
using GLdouble = System.Double;
|
||||
using GLclampd = System.Double;
|
||||
using GLstring = System.String;
|
||||
using System.Security;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Provides access to GLX functions.
|
||||
/// </summary>
|
||||
public static partial class Glx
|
||||
partial class Glx
|
||||
{
|
||||
#region Enums
|
||||
|
||||
|
@ -315,5 +316,20 @@ namespace OpenTK.Platform.X11
|
|||
#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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,63 +10,72 @@ using System.Text;
|
|||
|
||||
namespace OpenTK.Platform.X11
|
||||
{
|
||||
public static partial class Glx
|
||||
internal static partial class Glx
|
||||
{
|
||||
internal const string Library = "libGL.so.1";
|
||||
|
||||
// Disable BeforeFieldInit optimization.
|
||||
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
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue