Strongly-typed enums for ES 3.0 (WIP6)

Implemented strongly-typed enums for sections: Selecting a Buffer for
Writing, Fine Control of Buffer Updates, Clearing the Buffers.
This commit is contained in:
Stefanos A 2013-11-04 23:25:02 +01:00
parent 372dac9c48
commit 25b9939263
9 changed files with 201 additions and 57 deletions

View file

@ -4222,7 +4222,7 @@
</function>
<function name="StencilMaskSeparate" extension="Core" version="2.0">
<param name="face"><type>CullFaceMode</type></param>
<param name="face"><type>StencilFace</type></param>
</function>
<function name="StencilOp" extension="Core" version="2.0">
@ -5365,6 +5365,28 @@
<param name="srcAlpha"><type>BlendingFactorSrc</type></param>
<param name="dstAlpha"><type>BlendingFactorDest</type></param>
</function>
<!-- Selecting a Buffer for Writing [4.2.1] -->
<function name="DrawBuffers" extension="Core">
<param name="bufs"><type>DrawBufferMode</type></param>
</function>
<!-- Fine Control of Buffer Updates [4.2.2] -->
<function name="StencilMaskSeparate">
<param name="face"><type>StencilFace</type></param>
</function>
<!-- Clearing the Buffers [4.2.3] -->
<function name="Clear">
<param name="mask"><type>ClearBufferMask</type></param>
</function>
<function name="ClearBuffer" extension="Core">
<param name="buffer"><type>ClearBuffer</type></param>
</function>
<function name="ClearBufferfi" extension="Core">
<param name="buffer"><type>ClearBufferCombined</type></param>
</function>
</replace>
<add name="gles2" version="3.0">
@ -5531,6 +5553,14 @@
<use token="DEPTH_BUFFER_BIT" />
<use token="STENCIL_BUFFER_BIT" />
</enum>
<enum name="ClearBuffer">
<use token="COLOR" />
<use token="DEPTH" />
<use token="STENCIL" />
</enum>
<enum name="ClearBufferCombined">
<use token="DEPTH_STENCIL" />
</enum>
<enum name="CompressedInternalFormat">
<use token="COMPRESSED_R11_EAC" />
<use token="COMPRESSED_SIGNED_R11_EAC" />
@ -5551,6 +5581,26 @@
<enum name="DepthFunction">
<reuse enum="StencilFunction" />
</enum>
<enum name="DrawBufferMode">
<use token="NONE" />
<use token="BACK" />
<use token="COLOR_ATTACHMENT0" />
<use token="COLOR_ATTACHMENT1" />
<use token="COLOR_ATTACHMENT2" />
<use token="COLOR_ATTACHMENT3" />
<use token="COLOR_ATTACHMENT4" />
<use token="COLOR_ATTACHMENT5" />
<use token="COLOR_ATTACHMENT6" />
<use token="COLOR_ATTACHMENT7" />
<use token="COLOR_ATTACHMENT8" />
<use token="COLOR_ATTACHMENT9" />
<use token="COLOR_ATTACHMENT10" />
<use token="COLOR_ATTACHMENT11" />
<use token="COLOR_ATTACHMENT12" />
<use token="COLOR_ATTACHMENT13" />
<use token="COLOR_ATTACHMENT14" />
<use token="COLOR_ATTACHMENT15" />
</enum>
<enum name="DrawElementsType">
<use token="UNSIGNED_BYTE" />
<use token="UNSIGNED_SHORT" />

View file

@ -16617,13 +16617,13 @@ namespace OpenTK.Graphics.ES20
/// </param>
[AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")]
public static
void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, Int32 mask)
void StencilMaskSeparate(OpenTK.Graphics.ES20.StencilFace face, Int32 mask)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (UInt32)mask);
Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.StencilFace)face, (UInt32)mask);
#if DEBUG
}
#endif
@ -16646,13 +16646,13 @@ namespace OpenTK.Graphics.ES20
[System.CLSCompliant(false)]
[AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")]
public static
void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask)
void StencilMaskSeparate(OpenTK.Graphics.ES20.StencilFace face, UInt32 mask)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.CullFaceMode)face, (UInt32)mask);
Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.StencilFace)face, (UInt32)mask);
#if DEBUG
}
#endif

View file

@ -887,7 +887,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void StencilMask(UInt32 mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)]
internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask);
internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES20.StencilFace face, UInt32 mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOp", ExactSpelling = true)]
internal extern static void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass);

View file

@ -885,7 +885,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void StencilMask(UInt32 mask);
internal static StencilMask glStencilMask;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES20.CullFaceMode face, UInt32 mask);
internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES20.StencilFace face, UInt32 mask);
internal static StencilMaskSeparate glStencilMaskSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilOp(OpenTK.Graphics.ES20.StencilOp fail, OpenTK.Graphics.ES20.StencilOp zfail, OpenTK.Graphics.ES20.StencilOp zpass);

View file

@ -8618,7 +8618,7 @@ namespace OpenTK.Graphics.ES20
}
/// <summary>
/// Used in GL.CullFace, GL.StencilMaskSeparate
/// Used in GL.CullFace
/// </summary>
public enum CullFaceMode : int
{
@ -19084,7 +19084,7 @@ namespace OpenTK.Graphics.ES20
}
/// <summary>
/// Used in GL.StencilFuncSeparate, GL.StencilOpSeparate
/// Used in GL.StencilFuncSeparate, GL.StencilMaskSeparate and 1 other function
/// </summary>
public enum StencilFace : int
{

View file

@ -3825,13 +3825,13 @@ namespace OpenTK.Graphics.ES30
/// </param>
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferfi")]
public static
void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Single depth, Int32 stencil)
void ClearBuffer(OpenTK.Graphics.ES30.ClearBufferCombined buffer, Int32 drawbuffer, Single depth, Int32 stencil)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glClearBufferfi((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (Single)depth, (Int32)stencil);
Delegates.glClearBufferfi((OpenTK.Graphics.ES30.ClearBufferCombined)buffer, (Int32)drawbuffer, (Single)depth, (Int32)stencil);
#if DEBUG
}
#endif
@ -3868,7 +3868,7 @@ namespace OpenTK.Graphics.ES30
/// </param>
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferfv")]
public static
void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Single[] value)
void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, Single[] value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -3878,7 +3878,7 @@ namespace OpenTK.Graphics.ES30
{
fixed (Single* value_ptr = value)
{
Delegates.glClearBufferfv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (Single*)value_ptr);
Delegates.glClearBufferfv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (Single*)value_ptr);
}
}
#if DEBUG
@ -3917,7 +3917,7 @@ namespace OpenTK.Graphics.ES30
/// </param>
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferfv")]
public static
void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, ref Single value)
void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, ref Single value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -3927,7 +3927,7 @@ namespace OpenTK.Graphics.ES30
{
fixed (Single* value_ptr = &value)
{
Delegates.glClearBufferfv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (Single*)value_ptr);
Delegates.glClearBufferfv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (Single*)value_ptr);
}
}
#if DEBUG
@ -3967,13 +3967,13 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferfv")]
public static
unsafe void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Single* value)
unsafe void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, Single* value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glClearBufferfv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (Single*)value);
Delegates.glClearBufferfv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (Single*)value);
#if DEBUG
}
#endif
@ -4010,7 +4010,7 @@ namespace OpenTK.Graphics.ES30
/// </param>
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferiv")]
public static
void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Int32[] value)
void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, Int32[] value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -4020,7 +4020,7 @@ namespace OpenTK.Graphics.ES30
{
fixed (Int32* value_ptr = value)
{
Delegates.glClearBufferiv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (Int32*)value_ptr);
Delegates.glClearBufferiv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (Int32*)value_ptr);
}
}
#if DEBUG
@ -4059,7 +4059,7 @@ namespace OpenTK.Graphics.ES30
/// </param>
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferiv")]
public static
void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, ref Int32 value)
void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, ref Int32 value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -4069,7 +4069,7 @@ namespace OpenTK.Graphics.ES30
{
fixed (Int32* value_ptr = &value)
{
Delegates.glClearBufferiv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (Int32*)value_ptr);
Delegates.glClearBufferiv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (Int32*)value_ptr);
}
}
#if DEBUG
@ -4109,13 +4109,13 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferiv")]
public static
unsafe void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Int32* value)
unsafe void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, Int32* value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glClearBufferiv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (Int32*)value);
Delegates.glClearBufferiv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (Int32*)value);
#if DEBUG
}
#endif
@ -4153,7 +4153,7 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferuiv")]
public static
void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, UInt32[] value)
void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, UInt32[] value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -4163,7 +4163,7 @@ namespace OpenTK.Graphics.ES30
{
fixed (UInt32* value_ptr = value)
{
Delegates.glClearBufferuiv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (UInt32*)value_ptr);
Delegates.glClearBufferuiv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (UInt32*)value_ptr);
}
}
#if DEBUG
@ -4203,7 +4203,7 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferuiv")]
public static
void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, ref UInt32 value)
void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, ref UInt32 value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -4213,7 +4213,7 @@ namespace OpenTK.Graphics.ES30
{
fixed (UInt32* value_ptr = &value)
{
Delegates.glClearBufferuiv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (UInt32*)value_ptr);
Delegates.glClearBufferuiv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (UInt32*)value_ptr);
}
}
#if DEBUG
@ -4253,13 +4253,13 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glClearBufferuiv")]
public static
unsafe void ClearBuffer(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, UInt32* value)
unsafe void ClearBuffer(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, UInt32* value)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glClearBufferuiv((OpenTK.Graphics.ES30.All)buffer, (Int32)drawbuffer, (UInt32*)value);
Delegates.glClearBufferuiv((OpenTK.Graphics.ES30.ClearBuffer)buffer, (Int32)drawbuffer, (UInt32*)value);
#if DEBUG
}
#endif
@ -8727,7 +8727,7 @@ namespace OpenTK.Graphics.ES30
/// </param>
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDrawBuffers")]
public static
void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.All[] bufs)
void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode[] bufs)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -8735,9 +8735,9 @@ namespace OpenTK.Graphics.ES30
#endif
unsafe
{
fixed (OpenTK.Graphics.ES30.All* bufs_ptr = bufs)
fixed (OpenTK.Graphics.ES30.DrawBufferMode* bufs_ptr = bufs)
{
Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.ES30.All*)bufs_ptr);
Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs_ptr);
}
}
#if DEBUG
@ -8761,7 +8761,7 @@ namespace OpenTK.Graphics.ES30
/// </param>
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDrawBuffers")]
public static
void DrawBuffers(Int32 n, ref OpenTK.Graphics.ES30.All bufs)
void DrawBuffers(Int32 n, ref OpenTK.Graphics.ES30.DrawBufferMode bufs)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
@ -8769,9 +8769,9 @@ namespace OpenTK.Graphics.ES30
#endif
unsafe
{
fixed (OpenTK.Graphics.ES30.All* bufs_ptr = &bufs)
fixed (OpenTK.Graphics.ES30.DrawBufferMode* bufs_ptr = &bufs)
{
Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.ES30.All*)bufs_ptr);
Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs_ptr);
}
}
#if DEBUG
@ -8796,13 +8796,13 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "ES_VERSION_3_0", Version = "3.0", EntryPoint = "glDrawBuffers")]
public static
unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.All* bufs)
unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.ES30.All*)bufs);
Delegates.glDrawBuffers((Int32)n, (OpenTK.Graphics.ES30.DrawBufferMode*)bufs);
#if DEBUG
}
#endif
@ -27230,13 +27230,13 @@ namespace OpenTK.Graphics.ES30
/// </param>
[AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")]
public static
void StencilMaskSeparate(OpenTK.Graphics.ES30.CullFaceMode face, Int32 mask)
void StencilMaskSeparate(OpenTK.Graphics.ES30.StencilFace face, Int32 mask)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES30.CullFaceMode)face, (UInt32)mask);
Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES30.StencilFace)face, (UInt32)mask);
#if DEBUG
}
#endif
@ -27259,13 +27259,13 @@ namespace OpenTK.Graphics.ES30
[System.CLSCompliant(false)]
[AutoGenerated(Category = "ES_VERSION_2_0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")]
public static
void StencilMaskSeparate(OpenTK.Graphics.ES30.CullFaceMode face, UInt32 mask)
void StencilMaskSeparate(OpenTK.Graphics.ES30.StencilFace face, UInt32 mask)
{
#if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#endif
Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES30.CullFaceMode)face, (UInt32)mask);
Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES30.StencilFace)face, (UInt32)mask);
#if DEBUG
}
#endif

View file

@ -147,16 +147,16 @@ namespace OpenTK.Graphics.ES30
internal delegate void Clear(OpenTK.Graphics.ES30.ClearBufferMask mask);
internal static Clear glClear;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void ClearBufferfi(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Single depth, Int32 stencil);
internal delegate void ClearBufferfi(OpenTK.Graphics.ES30.ClearBufferCombined buffer, Int32 drawbuffer, Single depth, Int32 stencil);
internal static ClearBufferfi glClearBufferfi;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void ClearBufferfv(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Single* value);
internal unsafe delegate void ClearBufferfv(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, Single* value);
internal unsafe static ClearBufferfv glClearBufferfv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void ClearBufferiv(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Int32* value);
internal unsafe delegate void ClearBufferiv(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, Int32* value);
internal unsafe static ClearBufferiv glClearBufferiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void ClearBufferuiv(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, UInt32* value);
internal unsafe delegate void ClearBufferuiv(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, UInt32* value);
internal unsafe static ClearBufferuiv glClearBufferuiv;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void ClearColor(Single red, Single green, Single blue, Single alpha);
@ -351,7 +351,7 @@ namespace OpenTK.Graphics.ES30
internal delegate void DrawArraysInstancedNV(OpenTK.Graphics.ES30.PrimitiveType mode, Int32 first, Int32 count, Int32 primcount);
internal static DrawArraysInstancedNV glDrawArraysInstancedNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.All* bufs);
internal unsafe delegate void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs);
internal unsafe static DrawBuffers glDrawBuffers;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal unsafe delegate void DrawBuffersEXT(Int32 n, OpenTK.Graphics.ES30.All* bufs);
@ -1113,7 +1113,7 @@ namespace OpenTK.Graphics.ES30
internal delegate void StencilMask(UInt32 mask);
internal static StencilMask glStencilMask;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES30.CullFaceMode face, UInt32 mask);
internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES30.StencilFace face, UInt32 mask);
internal static StencilMaskSeparate glStencilMaskSeparate;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void StencilOp(OpenTK.Graphics.ES30.StencilOp fail, OpenTK.Graphics.ES30.StencilOp zfail, OpenTK.Graphics.ES30.StencilOp zpass);

View file

@ -385,7 +385,7 @@ namespace OpenTK.Graphics.ES30
}
/// <summary>
/// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 78 other functions
/// Used in GL.Amd.GetPerfMonitorCounterData, GL.Amd.GetPerfMonitorCounterInfo and 76 other functions
/// </summary>
public enum All : int
{
@ -9670,6 +9670,36 @@ namespace OpenTK.Graphics.ES30
DynamicCopy = ((int)0x88EA) ,
}
/// <summary>
/// Used in GL.ClearBuffer
/// </summary>
public enum ClearBuffer : int
{
/// <summary>
/// Original was GL_COLOR = 0x1800
/// </summary>
Color = ((int)0x1800) ,
/// <summary>
/// Original was GL_DEPTH = 0x1801
/// </summary>
Depth = ((int)0x1801) ,
/// <summary>
/// Original was GL_STENCIL = 0x1802
/// </summary>
Stencil = ((int)0x1802) ,
}
/// <summary>
/// Used in GL.ClearBuffer
/// </summary>
public enum ClearBufferCombined : int
{
/// <summary>
/// Original was GL_DEPTH_STENCIL = 0x84F9
/// </summary>
DepthStencil = ((int)0x84F9) ,
}
/// <summary>
/// Used in GL.Angle.BlitFramebuffer, GL.BlitFramebuffer and 2 other functions
/// </summary>
@ -10109,7 +10139,7 @@ namespace OpenTK.Graphics.ES30
}
/// <summary>
/// Used in GL.CullFace, GL.StencilMaskSeparate
/// Used in GL.CullFace
/// </summary>
public enum CullFaceMode : int
{
@ -10406,7 +10436,7 @@ namespace OpenTK.Graphics.ES30
}
/// <summary>
/// Not used directly.
/// Used in GL.DrawBuffers
/// </summary>
public enum DrawBufferMode : int
{
@ -10470,6 +10500,70 @@ namespace OpenTK.Graphics.ES30
/// Original was GL_AUX3 = 0x040C
/// </summary>
Aux3 = ((int)0x040C) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT0 = 0x8CE0
/// </summary>
ColorAttachment0 = ((int)0x8CE0) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT1 = 0x8CE1
/// </summary>
ColorAttachment1 = ((int)0x8CE1) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT2 = 0x8CE2
/// </summary>
ColorAttachment2 = ((int)0x8CE2) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT3 = 0x8CE3
/// </summary>
ColorAttachment3 = ((int)0x8CE3) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT4 = 0x8CE4
/// </summary>
ColorAttachment4 = ((int)0x8CE4) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT5 = 0x8CE5
/// </summary>
ColorAttachment5 = ((int)0x8CE5) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT6 = 0x8CE6
/// </summary>
ColorAttachment6 = ((int)0x8CE6) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT7 = 0x8CE7
/// </summary>
ColorAttachment7 = ((int)0x8CE7) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT8 = 0x8CE8
/// </summary>
ColorAttachment8 = ((int)0x8CE8) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT9 = 0x8CE9
/// </summary>
ColorAttachment9 = ((int)0x8CE9) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT10 = 0x8CEA
/// </summary>
ColorAttachment10 = ((int)0x8CEA) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT11 = 0x8CEB
/// </summary>
ColorAttachment11 = ((int)0x8CEB) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT12 = 0x8CEC
/// </summary>
ColorAttachment12 = ((int)0x8CEC) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT13 = 0x8CED
/// </summary>
ColorAttachment13 = ((int)0x8CED) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT14 = 0x8CEE
/// </summary>
ColorAttachment14 = ((int)0x8CEE) ,
/// <summary>
/// Original was GL_COLOR_ATTACHMENT15 = 0x8CEF
/// </summary>
ColorAttachment15 = ((int)0x8CEF) ,
}
/// <summary>
@ -22303,7 +22397,7 @@ namespace OpenTK.Graphics.ES30
}
/// <summary>
/// Used in GL.StencilFuncSeparate, GL.StencilOpSeparate
/// Used in GL.StencilFuncSeparate, GL.StencilMaskSeparate and 1 other function
/// </summary>
public enum StencilFace : int
{

View file

@ -149,16 +149,16 @@ namespace OpenTK.Graphics.ES30
internal extern static void Clear(OpenTK.Graphics.ES30.ClearBufferMask mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearBufferfi", ExactSpelling = true)]
internal extern static void ClearBufferfi(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Single depth, Int32 stencil);
internal extern static void ClearBufferfi(OpenTK.Graphics.ES30.ClearBufferCombined buffer, Int32 drawbuffer, Single depth, Int32 stencil);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearBufferfv", ExactSpelling = true)]
internal extern static unsafe void ClearBufferfv(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Single* value);
internal extern static unsafe void ClearBufferfv(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, Single* value);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearBufferiv", ExactSpelling = true)]
internal extern static unsafe void ClearBufferiv(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, Int32* value);
internal extern static unsafe void ClearBufferiv(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, Int32* value);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearBufferuiv", ExactSpelling = true)]
internal extern static unsafe void ClearBufferuiv(OpenTK.Graphics.ES30.All buffer, Int32 drawbuffer, UInt32* value);
internal extern static unsafe void ClearBufferuiv(OpenTK.Graphics.ES30.ClearBuffer buffer, Int32 drawbuffer, UInt32* value);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColor", ExactSpelling = true)]
internal extern static void ClearColor(Single red, Single green, Single blue, Single alpha);
@ -353,7 +353,7 @@ namespace OpenTK.Graphics.ES30
internal extern static void DrawArraysInstancedNV(OpenTK.Graphics.ES30.PrimitiveType mode, Int32 first, Int32 count, Int32 primcount);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawBuffers", ExactSpelling = true)]
internal extern static unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.All* bufs);
internal extern static unsafe void DrawBuffers(Int32 n, OpenTK.Graphics.ES30.DrawBufferMode* bufs);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawBuffersEXT", ExactSpelling = true)]
internal extern static unsafe void DrawBuffersEXT(Int32 n, OpenTK.Graphics.ES30.All* bufs);
@ -1115,7 +1115,7 @@ namespace OpenTK.Graphics.ES30
internal extern static void StencilMask(UInt32 mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)]
internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES30.CullFaceMode face, UInt32 mask);
internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES30.StencilFace face, UInt32 mask);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOp", ExactSpelling = true)]
internal extern static void StencilOp(OpenTK.Graphics.ES30.StencilOp fail, OpenTK.Graphics.ES30.StencilOp zfail, OpenTK.Graphics.ES30.StencilOp zpass);