mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 05:05:31 +00:00
Added glXSwapIntervalSGI method.
This commit is contained in:
parent
448e3a476f
commit
9551a569c2
|
@ -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));
|
||||
}
|
||||
|
||||
public struct Status
|
||||
#endregion
|
||||
}
|
||||
|
||||
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