Fixed compilation errors.

Moved bindings to the GL class.
This commit is contained in:
the_fiddler 2009-08-15 17:37:18 +00:00
parent 4021e67dc1
commit aa500ce806
12 changed files with 99 additions and 167 deletions

View file

@ -34,7 +34,7 @@ namespace OpenTK.Graphics.ES10
#pragma warning disable 1572
#pragma warning disable 1573
static partial class GL
partial class GL
{

View file

@ -266,13 +266,11 @@ namespace OpenTK.Graphics.ES10
Palette8Rgb5A1Oes = ((int)0X8b99),
ImplementationColorReadTypeOes = ((int)0X8b9a),
ImplementationColorReadFormatOes = ((int)0X8b9b),
32LeanAndMean = ((int)1),
OesCompressedPalettedTexture = ((int)1),
OesReadFormat = ((int)1),
OesVersion10 = ((int)1),
One = ((int)1),
True = ((int)1),
Pi = ((int)Extern),
}
public enum AlphaFunction
@ -666,10 +664,4 @@ namespace OpenTK.Graphics.ES10
ClampToEdge = ((int)0X812f),
}
public enum Unknown
{
32LeanAndMean = ((int)1),
Pi = ((int)Extern),
}
}

View file

@ -80,7 +80,7 @@ namespace OpenTK.Graphics.ES10
{
if (Context.ErrorChecking)
{
while ((ErrorCode)ES.GetError() != ErrorCode.NoError)
while ((ErrorCode)GL.GetError() != ErrorCode.NoError)
{ }
}
}
@ -96,7 +96,7 @@ namespace OpenTK.Graphics.ES10
ErrorCode error;
do
{
error = (ErrorCode)ES.GetError();
error = (ErrorCode)GL.GetError();
error_list.Add(error);
} while (error != ErrorCode.NoError);

View file

@ -241,10 +241,10 @@ namespace OpenTK.Graphics.ES11
internal extern static unsafe void DrawTexxvOES(int* coords);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)]
internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image);
internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetTexture2DOES", ExactSpelling = true)]
internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image);
internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)]
internal extern static void Enable(OpenTK.Graphics.ES11.All cap);

View file

@ -239,10 +239,10 @@ namespace OpenTK.Graphics.ES11
internal unsafe delegate void DrawTexxvOES(int* coords);
internal unsafe static DrawTexxvOES glDrawTexxvOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image);
internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, IntPtr image);
internal static EGLImageTargetRenderbufferStorageOES glEGLImageTargetRenderbufferStorageOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image);
internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, IntPtr image);
internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Enable(OpenTK.Graphics.ES11.All cap);

View file

@ -34,7 +34,7 @@ namespace OpenTK.Graphics.ES11
#pragma warning disable 1572
#pragma warning disable 1573
static partial class GL
partial class GL
{
@ -9958,13 +9958,13 @@ namespace OpenTK.Graphics.ES11
[AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEGLImageTargetRenderbufferStorageOES")]
public static
void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES11.All target, GLeglImageOES image)
void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES11.All target, IntPtr image)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES11.All)target, (GLeglImageOES)image);
Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES11.All)target, (IntPtr)image);
#if DEBUG
}
#endif
@ -9972,13 +9972,13 @@ namespace OpenTK.Graphics.ES11
[AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEGLImageTargetTexture2DOES")]
public static
void EGLImageTargetTexture2D(OpenTK.Graphics.ES11.All target, GLeglImageOES image)
void EGLImageTargetTexture2D(OpenTK.Graphics.ES11.All target, IntPtr image)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES11.All)target, (GLeglImageOES)image);
Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES11.All)target, (IntPtr)image);
#if DEBUG
}
#endif

View file

@ -411,8 +411,8 @@ namespace OpenTK.Graphics.ES11
BufferSize = ((int)0X8764),
BufferUsage = ((int)0X8765),
AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee),
3DcXAmd = ((int)0X87f9),
3DcXyAmd = ((int)0X87fa),
GL_3DcXAmd = ((int)0X87f9),
GL_3DcXyAmd = ((int)0X87fa),
BlendEquationAlphaOes = ((int)0X883d),
MatrixPaletteOes = ((int)0X8840),
MaxPaletteMatricesOes = ((int)0X8842),
@ -572,8 +572,8 @@ namespace OpenTK.Graphics.ES11
public enum Amdcompressed3Dctexture
{
3DcXAmd = ((int)0X87f9),
3DcXyAmd = ((int)0X87fa),
GL_3DcXAmd = ((int)0X87f9),
GL_3DcXyAmd = ((int)0X87fa),
AmdCompressed3DcTexture = ((int)1),
}

View file

@ -139,7 +139,7 @@ namespace OpenTK.Graphics.ES20
internal extern static unsafe void DeleteBuffers(Int32 n, UInt32* buffers);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFencesNV", ExactSpelling = true)]
internal extern static unsafe void DeleteFencesNV(UInt32**);
internal extern static unsafe void DeleteFencesNV(Int32 n, UInt32* fences);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFramebuffers", ExactSpelling = true)]
internal extern static unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers);
@ -187,10 +187,10 @@ namespace OpenTK.Graphics.ES20
internal extern static void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)]
internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image);
internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetTexture2DOES", ExactSpelling = true)]
internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image);
internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, IntPtr image);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)]
internal extern static void Enable(OpenTK.Graphics.ES20.All cap);
@ -208,7 +208,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void Finish();
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFinishFenceNV", ExactSpelling = true)]
internal extern static void FinishFenceNV();
internal extern static void FinishFenceNV(UInt32 fence);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlush", ExactSpelling = true)]
internal extern static void Flush();
@ -232,7 +232,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.All target);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFencesNV", ExactSpelling = true)]
internal extern static unsafe void GenFencesNV(UInt32**);
internal extern static unsafe void GenFencesNV(Int32 n, UInt32* fences);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFramebuffers", ExactSpelling = true)]
internal extern static unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers);
@ -277,7 +277,7 @@ namespace OpenTK.Graphics.ES20
internal extern static OpenTK.Graphics.ES20.All GetError();
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFenceivNV", ExactSpelling = true)]
internal extern static unsafe void GetFenceivNV(Int32**);
internal extern static unsafe void GetFenceivNV(UInt32 fence, Int32* @params);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)]
internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params);
@ -367,7 +367,7 @@ namespace OpenTK.Graphics.ES20
internal extern static bool IsEnabled(OpenTK.Graphics.ES20.All cap);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFenceNV", ExactSpelling = true)]
internal extern static bool IsFenceNV();
internal extern static bool IsFenceNV(UInt32 fence);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFramebuffer", ExactSpelling = true)]
internal extern static bool IsFramebuffer(UInt32 framebuffer);
@ -421,7 +421,7 @@ namespace OpenTK.Graphics.ES20
internal extern static unsafe void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSetFenceNV", ExactSpelling = true)]
internal extern static void SetFenceNV();
internal extern static void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES20.All condition);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderBinary", ExactSpelling = true)]
internal extern static unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length);
@ -448,7 +448,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)]
internal extern static bool TestFenceNV();
internal extern static bool TestFenceNV(UInt32 fence);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)]
internal extern static void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);

View file

@ -137,7 +137,7 @@ namespace OpenTK.Graphics.ES20
internal unsafe delegate void DeleteBuffers(Int32 n, UInt32* buffers);
internal unsafe static DeleteBuffers glDeleteBuffers;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DeleteFencesNV(UInt32**);
internal unsafe delegate void DeleteFencesNV(Int32 n, UInt32* fences);
internal unsafe static DeleteFencesNV glDeleteFencesNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DeleteFramebuffers(Int32 n, UInt32* framebuffers);
@ -185,10 +185,10 @@ namespace OpenTK.Graphics.ES20
internal delegate void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices);
internal static DrawElements glDrawElements;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image);
internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, IntPtr image);
internal static EGLImageTargetRenderbufferStorageOES glEGLImageTargetRenderbufferStorageOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image);
internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, IntPtr image);
internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Enable(OpenTK.Graphics.ES20.All cap);
@ -206,7 +206,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void Finish();
internal static Finish glFinish;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FinishFenceNV();
internal delegate void FinishFenceNV(UInt32 fence);
internal static FinishFenceNV glFinishFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void Flush();
@ -230,7 +230,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.All target);
internal static GenerateMipmap glGenerateMipmap;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenFencesNV(UInt32**);
internal unsafe delegate void GenFencesNV(Int32 n, UInt32* fences);
internal unsafe static GenFencesNV glGenFencesNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GenFramebuffers(Int32 n, UInt32* framebuffers);
@ -275,7 +275,7 @@ namespace OpenTK.Graphics.ES20
internal delegate OpenTK.Graphics.ES20.All GetError();
internal static GetError glGetError;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetFenceivNV(Int32**);
internal unsafe delegate void GetFenceivNV(UInt32 fence, Int32* @params);
internal unsafe static GetFenceivNV glGetFenceivNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params);
@ -365,7 +365,7 @@ namespace OpenTK.Graphics.ES20
internal delegate bool IsEnabled(OpenTK.Graphics.ES20.All cap);
internal static IsEnabled glIsEnabled;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool IsFenceNV();
internal delegate bool IsFenceNV(UInt32 fence);
internal static IsFenceNV glIsFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool IsFramebuffer(UInt32 framebuffer);
@ -419,7 +419,7 @@ namespace OpenTK.Graphics.ES20
internal unsafe delegate void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList);
internal unsafe static SelectPerfMonitorCountersAMD glSelectPerfMonitorCountersAMD;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void SetFenceNV();
internal delegate void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES20.All condition);
internal static SetFenceNV glSetFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length);
@ -446,7 +446,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass);
internal static StencilOpSeparate glStencilOpSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate bool TestFenceNV();
internal delegate bool TestFenceNV(UInt32 fence);
internal static TestFenceNV glTestFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels);

View file

@ -34,7 +34,7 @@ namespace OpenTK.Graphics.ES20
#pragma warning disable 1572
#pragma warning disable 1573
static partial class GL
partial class GL
{
public static partial class Amd
@ -10814,30 +10814,32 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
unsafe void DeleteFences(Int32**)
unsafe void DeleteFences(Int32 n, Int32* fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glDeleteFencesNV((UInt32**));
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences);
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
unsafe void DeleteFences(Int32*[])
void DeleteFences(Int32 n, ref UInt32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (Int32** _ptr = )
unsafe
{
Delegates.glDeleteFencesNV((UInt32**)_ptr);
fixed (UInt32* fences_ptr = &fences)
{
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
}
#if DEBUG
}
@ -10847,66 +10849,32 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
unsafe void DeleteFences(ref Int32*)
unsafe void DeleteFences(Int32 n, UInt32* fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (Int32** _ptr = &)
{
Delegates.glDeleteFencesNV((UInt32**)_ptr);
}
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences);
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
unsafe void DeleteFences(ref UInt32*)
void DeleteFences(Int32 n, UInt32[] fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (UInt32** _ptr = &)
unsafe
{
Delegates.glDeleteFencesNV((UInt32**)_ptr);
}
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
unsafe void DeleteFences(UInt32**)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glDeleteFencesNV((UInt32**));
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")]
public static
unsafe void DeleteFences(UInt32*[])
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (UInt32** _ptr = )
{
Delegates.glDeleteFencesNV((UInt32**)_ptr);
fixed (UInt32* fences_ptr = fences)
{
Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr);
}
}
#if DEBUG
}
@ -10915,13 +10883,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFinishFenceNV")]
public static
void FinishFence()
void FinishFence(UInt32 fence)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glFinishFenceNV();
Delegates.glFinishFenceNV((UInt32)fence);
#if DEBUG
}
#endif
@ -10930,30 +10898,32 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
unsafe void GenFences(Int32**)
unsafe void GenFences(Int32 n, Int32* fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glGenFencesNV((UInt32**));
Delegates.glGenFencesNV((Int32)n, (UInt32*)fences);
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
unsafe void GenFences(Int32*[])
void GenFences(Int32 n, ref UInt32 fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (Int32** _ptr = )
unsafe
{
Delegates.glGenFencesNV((UInt32**)_ptr);
fixed (UInt32* fences_ptr = &fences)
{
Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
}
}
#if DEBUG
}
@ -10963,66 +10933,32 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
unsafe void GenFences(ref Int32*)
unsafe void GenFences(Int32 n, UInt32* fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (Int32** _ptr = &)
{
Delegates.glGenFencesNV((UInt32**)_ptr);
}
Delegates.glGenFencesNV((Int32)n, (UInt32*)fences);
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
unsafe void GenFences(ref UInt32*)
void GenFences(Int32 n, UInt32[] fences)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (UInt32** _ptr = &)
unsafe
{
Delegates.glGenFencesNV((UInt32**)_ptr);
}
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
unsafe void GenFences(UInt32**)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glGenFencesNV((UInt32**));
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")]
public static
unsafe void GenFences(UInt32*[])
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (UInt32** _ptr = )
{
Delegates.glGenFencesNV((UInt32**)_ptr);
fixed (UInt32* fences_ptr = fences)
{
Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr);
}
}
#if DEBUG
}
@ -11032,48 +10968,52 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
public static
unsafe void GetFence(Int32**)
unsafe void GetFence(UInt32 fence, Int32* @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glGetFenceivNV((Int32**));
Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params);
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
public static
unsafe void GetFence(Int32*[])
void GetFence(UInt32 fence, Int32[] @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (Int32** _ptr = )
unsafe
{
Delegates.glGetFenceivNV((Int32**)_ptr);
fixed (Int32* @params_ptr = @params)
{
Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params_ptr);
}
}
#if DEBUG
}
#endif
}
[System.CLSCompliant(false)]
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")]
public static
unsafe void GetFence(ref Int32*)
void GetFence(UInt32 fence, ref Int32 @params)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
fixed (Int32** _ptr = &)
unsafe
{
Delegates.glGetFenceivNV((Int32**)_ptr);
fixed (Int32* @params_ptr = &@params)
{
Delegates.glGetFenceivNV((UInt32)fence, (Int32*)@params_ptr);
}
}
#if DEBUG
}
@ -11082,13 +11022,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsFenceNV")]
public static
bool IsFence()
bool IsFence(UInt32 fence)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
return Delegates.glIsFenceNV();
return Delegates.glIsFenceNV((UInt32)fence);
#if DEBUG
}
#endif
@ -11096,13 +11036,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSetFenceNV")]
public static
void SetFence()
void SetFence(UInt32 fence, OpenTK.Graphics.ES20.All condition)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glSetFenceNV();
Delegates.glSetFenceNV((UInt32)fence, (OpenTK.Graphics.ES20.All)condition);
#if DEBUG
}
#endif
@ -11110,13 +11050,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTestFenceNV")]
public static
bool TestFence()
bool TestFence(UInt32 fence)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
return Delegates.glTestFenceNV();
return Delegates.glTestFenceNV((UInt32)fence);
#if DEBUG
}
#endif
@ -11913,13 +11853,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEGLImageTargetRenderbufferStorageOES")]
public static
void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES20.All target, GLeglImageOES image)
void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES20.All target, IntPtr image)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES20.All)target, (GLeglImageOES)image);
Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES20.All)target, (IntPtr)image);
#if DEBUG
}
#endif
@ -11927,13 +11867,13 @@ namespace OpenTK.Graphics.ES20
[AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEGLImageTargetTexture2DOES")]
public static
void EGLImageTargetTexture2D(OpenTK.Graphics.ES20.All target, GLeglImageOES image)
void EGLImageTargetTexture2D(OpenTK.Graphics.ES20.All target, IntPtr image)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES20.All)target, (GLeglImageOES)image);
Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES20.All)target, (IntPtr)image);
#if DEBUG
}
#endif

View file

@ -261,8 +261,8 @@ namespace OpenTK.Graphics.ES20
BufferSize = ((int)0X8764),
BufferUsage = ((int)0X8765),
AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee),
3DcXAmd = ((int)0X87f9),
3DcXyAmd = ((int)0X87fa),
GL_3DcXAmd = ((int)0X87f9),
GL_3DcXyAmd = ((int)0X87fa),
NumProgramBinaryFormatsOes = ((int)0X87fe),
ProgramBinaryFormatsOes = ((int)0X87ff),
StencilBackFunc = ((int)0X8800),
@ -439,8 +439,8 @@ namespace OpenTK.Graphics.ES20
public enum Amdcompressed3Dctexture
{
3DcXAmd = ((int)0X87f9),
3DcXyAmd = ((int)0X87fa),
GL_3DcXAmd = ((int)0X87f9),
GL_3DcXyAmd = ((int)0X87fa),
AmdCompressed3DcTexture = ((int)1),
}

View file

@ -80,7 +80,7 @@ namespace OpenTK.Graphics.ES20
{
if (Context.ErrorChecking)
{
while ((ErrorCode)ES.GetError() != ErrorCode.NoError)
while ((ErrorCode)GL.GetError() != ErrorCode.NoError)
{ }
}
}
@ -96,7 +96,7 @@ namespace OpenTK.Graphics.ES20
ErrorCode error;
do
{
error = (ErrorCode)ES.GetError();
error = (ErrorCode)GL.GetError();
error_list.Add(error);
} while (error != ErrorCode.NoError);