ES 3.0 strong enums for DrawBuffersEXT and NV

Relax the extension constraint in DrawBuffers, in order to add strong
enums to the extension varieties of this function.
This commit is contained in:
Stefanos A 2013-11-07 10:33:02 +01:00
parent 2d1df46d98
commit 8de24c97fb
5 changed files with 25 additions and 25 deletions

View file

@ -5310,7 +5310,7 @@
</function> </function>
<!-- Selecting a Buffer for Writing [4.2.1] --> <!-- Selecting a Buffer for Writing [4.2.1] -->
<function name="DrawBuffers" extension="Core"> <function name="DrawBuffers">
<param name="bufs"><type>DrawBufferMode</type></param> <param name="bufs"><type>DrawBufferMode</type></param>
</function> </function>
@ -5323,10 +5323,10 @@
<function name="Clear"> <function name="Clear">
<param name="mask"><type>ClearBufferMask</type></param> <param name="mask"><type>ClearBufferMask</type></param>
</function> </function>
<function name="ClearBuffer" extension="Core"> <function name="ClearBuffer">
<param name="buffer"><type>ClearBuffer</type></param> <param name="buffer"><type>ClearBuffer</type></param>
</function> </function>
<function name="ClearBufferfi" extension="Core"> <function name="ClearBufferfi">
<param name="buffer"><type>ClearBufferCombined</type></param> <param name="buffer"><type>ClearBufferCombined</type></param>
</function> </function>

View file

@ -35348,7 +35348,7 @@ namespace OpenTK.Graphics.ES30
/// </param> /// </param>
[AutoGenerated(Category = "EXT_draw_buffers", Version = "", EntryPoint = "glDrawBuffersEXT")] [AutoGenerated(Category = "EXT_draw_buffers", Version = "", EntryPoint = "glDrawBuffersEXT")]
public static public static
void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.All[] bufs) void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode[] bufs)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -35356,9 +35356,9 @@ namespace OpenTK.Graphics.ES30
#endif #endif
unsafe unsafe
{ {
fixed (OpenTK.Graphics.ES30.All* bufs_ptr = bufs) fixed (OpenTK.Graphics.ES30.DrawBufferMode* bufs_ptr = bufs)
{ {
Delegates.glDrawBuffersEXT((Int32)n, (OpenTK.Graphics.ES30.All*)bufs_ptr); Delegates.glDrawBuffersEXT((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs_ptr);
} }
} }
#if DEBUG #if DEBUG
@ -35382,7 +35382,7 @@ namespace OpenTK.Graphics.ES30
/// </param> /// </param>
[AutoGenerated(Category = "EXT_draw_buffers", Version = "", EntryPoint = "glDrawBuffersEXT")] [AutoGenerated(Category = "EXT_draw_buffers", Version = "", EntryPoint = "glDrawBuffersEXT")]
public static public static
void DrawBuffers(Int32 n, ref OpenTK.Graphics.ES30.All bufs) void DrawBuffers(Int32 n, ref OpenTK.Graphics.ES30.DrawBufferMode bufs)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -35390,9 +35390,9 @@ namespace OpenTK.Graphics.ES30
#endif #endif
unsafe unsafe
{ {
fixed (OpenTK.Graphics.ES30.All* bufs_ptr = &bufs) fixed (OpenTK.Graphics.ES30.DrawBufferMode* bufs_ptr = &bufs)
{ {
Delegates.glDrawBuffersEXT((Int32)n, (OpenTK.Graphics.ES30.All*)bufs_ptr); Delegates.glDrawBuffersEXT((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs_ptr);
} }
} }
#if DEBUG #if DEBUG
@ -35417,13 +35417,13 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)] [System.CLSCompliant(false)]
[AutoGenerated(Category = "EXT_draw_buffers", Version = "", EntryPoint = "glDrawBuffersEXT")] [AutoGenerated(Category = "EXT_draw_buffers", Version = "", EntryPoint = "glDrawBuffersEXT")]
public static public static
unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.All* bufs) unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glDrawBuffersEXT((Int32)n, (OpenTK.Graphics.ES30.All*)bufs); Delegates.glDrawBuffersEXT((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs);
#if DEBUG #if DEBUG
} }
#endif #endif
@ -48266,7 +48266,7 @@ namespace OpenTK.Graphics.ES30
/// </param> /// </param>
[AutoGenerated(Category = "NV_draw_buffers", Version = "", EntryPoint = "glDrawBuffersNV")] [AutoGenerated(Category = "NV_draw_buffers", Version = "", EntryPoint = "glDrawBuffersNV")]
public static public static
void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.All[] bufs) void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode[] bufs)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -48274,9 +48274,9 @@ namespace OpenTK.Graphics.ES30
#endif #endif
unsafe unsafe
{ {
fixed (OpenTK.Graphics.ES30.All* bufs_ptr = bufs) fixed (OpenTK.Graphics.ES30.DrawBufferMode* bufs_ptr = bufs)
{ {
Delegates.glDrawBuffersNV((Int32)n, (OpenTK.Graphics.ES30.All*)bufs_ptr); Delegates.glDrawBuffersNV((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs_ptr);
} }
} }
#if DEBUG #if DEBUG
@ -48300,7 +48300,7 @@ namespace OpenTK.Graphics.ES30
/// </param> /// </param>
[AutoGenerated(Category = "NV_draw_buffers", Version = "", EntryPoint = "glDrawBuffersNV")] [AutoGenerated(Category = "NV_draw_buffers", Version = "", EntryPoint = "glDrawBuffersNV")]
public static public static
void DrawBuffers(Int32 n, ref OpenTK.Graphics.ES30.All bufs) void DrawBuffers(Int32 n, ref OpenTK.Graphics.ES30.DrawBufferMode bufs)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -48308,9 +48308,9 @@ namespace OpenTK.Graphics.ES30
#endif #endif
unsafe unsafe
{ {
fixed (OpenTK.Graphics.ES30.All* bufs_ptr = &bufs) fixed (OpenTK.Graphics.ES30.DrawBufferMode* bufs_ptr = &bufs)
{ {
Delegates.glDrawBuffersNV((Int32)n, (OpenTK.Graphics.ES30.All*)bufs_ptr); Delegates.glDrawBuffersNV((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs_ptr);
} }
} }
#if DEBUG #if DEBUG
@ -48335,13 +48335,13 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)] [System.CLSCompliant(false)]
[AutoGenerated(Category = "NV_draw_buffers", Version = "", EntryPoint = "glDrawBuffersNV")] [AutoGenerated(Category = "NV_draw_buffers", Version = "", EntryPoint = "glDrawBuffersNV")]
public static public static
unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.All* bufs) unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glDrawBuffersNV((Int32)n, (OpenTK.Graphics.ES30.All*)bufs); Delegates.glDrawBuffersNV((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs);
#if DEBUG #if DEBUG
} }
#endif #endif

View file

@ -353,13 +353,13 @@ namespace OpenTK.Graphics.ES30
internal extern static unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs); internal extern static unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawBuffersEXT", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawBuffersEXT", ExactSpelling = true)]
internal extern static unsafe void DrawBuffersEXT(Int32 n, OpenTK.Graphics.ES30.All* bufs); internal extern static unsafe void DrawBuffersEXT(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawBuffersIndexedEXT", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawBuffersIndexedEXT", ExactSpelling = true)]
internal extern static unsafe void DrawBuffersIndexedEXT(Int32 n, OpenTK.Graphics.ES30.All* location, Int32* indices); internal extern static unsafe void DrawBuffersIndexedEXT(Int32 n, OpenTK.Graphics.ES30.All* location, Int32* indices);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawBuffersNV", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawBuffersNV", ExactSpelling = true)]
internal extern static unsafe void DrawBuffersNV(Int32 n, OpenTK.Graphics.ES30.All* bufs); internal extern static unsafe void DrawBuffersNV(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawElements", ExactSpelling = true)]
internal extern static void DrawElements(OpenTK.Graphics.ES30.PrimitiveType mode, Int32 count, OpenTK.Graphics.ES30.DrawElementsType type, IntPtr indices); internal extern static void DrawElements(OpenTK.Graphics.ES30.PrimitiveType mode, Int32 count, OpenTK.Graphics.ES30.DrawElementsType type, IntPtr indices);

View file

@ -351,13 +351,13 @@ namespace OpenTK.Graphics.ES30
internal unsafe delegate void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs); internal unsafe delegate void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs);
internal unsafe static DrawBuffers glDrawBuffers; internal unsafe static DrawBuffers glDrawBuffers;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DrawBuffersEXT(Int32 n, OpenTK.Graphics.ES30.All* bufs); internal unsafe delegate void DrawBuffersEXT(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs);
internal unsafe static DrawBuffersEXT glDrawBuffersEXT; internal unsafe static DrawBuffersEXT glDrawBuffersEXT;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DrawBuffersIndexedEXT(Int32 n, OpenTK.Graphics.ES30.All* location, Int32* indices); internal unsafe delegate void DrawBuffersIndexedEXT(Int32 n, OpenTK.Graphics.ES30.All* location, Int32* indices);
internal unsafe static DrawBuffersIndexedEXT glDrawBuffersIndexedEXT; internal unsafe static DrawBuffersIndexedEXT glDrawBuffersIndexedEXT;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DrawBuffersNV(Int32 n, OpenTK.Graphics.ES30.All* bufs); internal unsafe delegate void DrawBuffersNV(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs);
internal unsafe static DrawBuffersNV glDrawBuffersNV; internal unsafe static DrawBuffersNV glDrawBuffersNV;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void DrawElements(OpenTK.Graphics.ES30.PrimitiveType mode, Int32 count, OpenTK.Graphics.ES30.DrawElementsType type, IntPtr indices); internal delegate void DrawElements(OpenTK.Graphics.ES30.PrimitiveType mode, Int32 count, OpenTK.Graphics.ES30.DrawElementsType type, IntPtr indices);

View file

@ -385,7 +385,7 @@ namespace OpenTK.Graphics.ES30
} }
/// <summary> /// <summary>
/// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 47 other functions /// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 45 other functions
/// </summary> /// </summary>
public enum All : int public enum All : int
{ {
@ -10455,7 +10455,7 @@ namespace OpenTK.Graphics.ES30
} }
/// <summary> /// <summary>
/// Used in GL.DrawBuffers /// Used in GL.DrawBuffers, GL.Ext.DrawBuffers and 1 other function
/// </summary> /// </summary>
public enum DrawBufferMode : int public enum DrawBufferMode : int
{ {