Added compatibility overloads for ES 2.0

This commit is contained in:
Stefanos A 2013-11-18 01:10:01 +01:00
parent 01d40c551a
commit e572f418af
5 changed files with 1874 additions and 449 deletions

View file

@ -4834,7 +4834,7 @@
<param name="type"><type>PixelType</type></param>
</function>
<function name="TexStorage3D">
<param name="target"><type>TextureTarget2d</type></param>
<param name="target"><type>TextureTarget3d</type></param>
<param name="internalformat"><type>SizedInternalFormat</type></param>
<param name="format"><type>PixelFormat</type></param>
<param name="type"><type>PixelType</type></param>
@ -5001,19 +5001,19 @@
<!-- Attaching Renderbuffer Images to Framebuffer -->
<function name="FramebufferRenderbuffer">
<param name="target"><type>FramebufferTarget</type></param>
<param name="attachment"><type>FramebufferSlot</type></param>
<param name="attachment"><type>FramebufferAttachment</type></param>
<param name="renderbuffertarget"><type>RenderbufferTarget</type></param>
</function>
<!-- Attaching Texture Images to a Framebuffer -->
<function name="FramebufferTexture2D">
<param name="target"><type>FramebufferTarget</type></param>
<param name="attachment"><type>FramebufferSlot</type></param>
<param name="attachment"><type>FramebufferAttachment</type></param>
<param name="textarget"><type>TextureTarget2d</type></param>
</function>
<function name="FramebufferTextureLayer">
<param name="target"><type>FramebufferTarget</type></param>
<param name="attachment"><type>FramebufferSlot</type></param>
<param name="attachment"><type>FramebufferAttachment</type></param>
<param name="textarget"><type>TextureTarget3d</type></param>
</function>
@ -5168,7 +5168,48 @@
<param name="target"><type>TextureTarget</type></param>
<param name="format"><type>PixelFormat</type></param>
</function>
<!-- Khronos added count="1" to VertexAttrib1fv -->
<function name="VertexAttrib1fv">
<param name="v">
<count>0</count>
</param>
</function>
<!-- generated by apitest -->
<function name="FramebufferRenderbuffer" obsolete="Use FramebufferAttachment overload instead">
<param name="attachment">
<type>FramebufferSlot</type>
</param>
</function>
<function name="FramebufferTexture2D" obsolete="Use TextureTarget2d overload instead">
<param name="textarget">
<type>TextureTarget</type>
</param>
<param name="attachment">
<type>FramebufferSlot</type>
</param>
</function>
<function name="TexImage3D" obsolete="Use strongly-typed overload instead">
<param name="internalformat">
<type>int</type>
</param>
</function>
<function name="GetFramebufferAttachmentParameter" obsolete="Use FramebufferAttachment overload instead">
<param name="attachment">
<type>FramebufferSlot</type>
</param>
</function>
<function name="GetProgram" obsolete="Use GetProgramParameterName overload instead">
<param name="pname">
<type>ProgramParameter</type>
</param>
</function>
<function name="GetTexParameter" obsolete="Use GetTextureParameterName overload instead">
<param name="pname">
<type>GetTextureParameter</type>
</param>
</function>
</overload>
<!-- gles2 2.0 enums -->
@ -5783,6 +5824,18 @@
<token name="LuminanceAlpha" value="0X190a" />
</enum>
<enum name="SizedInternalFormat">
<reuse enum="PixelInternalFormat" />
</enum>
<enum name="TextureComponentCount">
<reuse enum="SizedInternalFormat" />
<use token="RGB" />
<use token="RGBA" />
<use token="LUMINANCE_ALPHA" />
<use token="LUMINANCE" />
<use token="ALPHA" />
</enum>
<enum name="FramebufferTarget">
<token name="Framebuffer" value="0X8d40" />
@ -5939,6 +5992,11 @@
<enum name="CompressedInternalFormat">
<use token="ETC1_RGB8_OES" />
</enum>
<!-- For compatibility with OpenTK 1.0 -->
<enum name="ProgramParameter">
<reuse enum="GetProgramParameterName" />
</enum>
</add>

File diff suppressed because it is too large Load diff

View file

@ -377,10 +377,10 @@ namespace OpenTK.Graphics.ES20
internal extern static void FlushMappedBufferRangeEXT(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr length);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferRenderbuffer", ExactSpelling = true)]
internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer);
internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture2D", ExactSpelling = true)]
internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget2d textarget, UInt32 texture, Int32 level);
internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.TextureTarget2d textarget, UInt32 texture, Int32 level);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture2DMultisampleEXT", ExactSpelling = true)]
internal extern static void FramebufferTexture2DMultisampleEXT(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 samples);
@ -890,10 +890,10 @@ namespace OpenTK.Graphics.ES20
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.TextureTarget2d target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal extern static void TexImage2D(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 level, OpenTK.Graphics.ES20.TextureComponentCount internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage3DOES", ExactSpelling = true)]
internal extern static void TexImage3DOES(OpenTK.Graphics.ES20.TextureTarget3d target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal extern static void TexImage3DOES(OpenTK.Graphics.ES20.TextureTarget3d target, Int32 level, OpenTK.Graphics.ES20.TextureComponentCount internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)]
internal extern static void TexParameterf(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single param);
@ -914,7 +914,7 @@ namespace OpenTK.Graphics.ES20
internal extern static void TexStorage2DEXT(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES20.SizedInternalFormat internalformat, Int32 width, Int32 height);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexStorage3DEXT", ExactSpelling = true)]
internal extern static void TexStorage3DEXT(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES20.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth);
internal extern static void TexStorage3DEXT(OpenTK.Graphics.ES20.TextureTarget3d target, Int32 levels, OpenTK.Graphics.ES20.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth);
[System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)]
internal extern static void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);

View file

@ -375,10 +375,10 @@ namespace OpenTK.Graphics.ES20
internal delegate void FlushMappedBufferRangeEXT(OpenTK.Graphics.ES20.BufferTarget target, IntPtr offset, IntPtr length);
internal static FlushMappedBufferRangeEXT glFlushMappedBufferRangeEXT;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer);
internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.RenderbufferTarget renderbuffertarget, UInt32 renderbuffer);
internal static FramebufferRenderbuffer glFramebufferRenderbuffer;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.FramebufferSlot attachment, OpenTK.Graphics.ES20.TextureTarget2d textarget, UInt32 texture, Int32 level);
internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES20.FramebufferTarget target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.TextureTarget2d textarget, UInt32 texture, Int32 level);
internal static FramebufferTexture2D glFramebufferTexture2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void FramebufferTexture2DMultisampleEXT(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 samples);
@ -888,10 +888,10 @@ namespace OpenTK.Graphics.ES20
internal delegate bool TestFenceNV(UInt32 fence);
internal static TestFenceNV glTestFenceNV;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexImage2D(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal delegate void TexImage2D(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 level, OpenTK.Graphics.ES20.TextureComponentCount internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal static TexImage2D glTexImage2D;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexImage3DOES(OpenTK.Graphics.ES20.TextureTarget3d target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal delegate void TexImage3DOES(OpenTK.Graphics.ES20.TextureTarget3d target, Int32 level, OpenTK.Graphics.ES20.TextureComponentCount internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);
internal static TexImage3DOES glTexImage3DOES;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexParameterf(OpenTK.Graphics.ES20.TextureTarget target, OpenTK.Graphics.ES20.TextureParameterName pname, Single param);
@ -912,7 +912,7 @@ namespace OpenTK.Graphics.ES20
internal delegate void TexStorage2DEXT(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES20.SizedInternalFormat internalformat, Int32 width, Int32 height);
internal static TexStorage2DEXT glTexStorage2DEXT;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexStorage3DEXT(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 levels, OpenTK.Graphics.ES20.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth);
internal delegate void TexStorage3DEXT(OpenTK.Graphics.ES20.TextureTarget3d target, Int32 levels, OpenTK.Graphics.ES20.SizedInternalFormat internalformat, Int32 width, Int32 height, Int32 depth);
internal static TexStorage3DEXT glTexStorage3DEXT;
[System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexSubImage2D(OpenTK.Graphics.ES20.TextureTarget2d target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.PixelFormat format, OpenTK.Graphics.ES20.PixelType type, IntPtr pixels);

View file

@ -11845,7 +11845,7 @@ namespace OpenTK.Graphics.ES20
}
/// <summary>
/// Used in GL.FramebufferRenderbuffer, GL.FramebufferTexture2D
/// Used in GL.FramebufferRenderbuffer, GL.FramebufferTexture2D and 1 other function
/// </summary>
public enum FramebufferSlot : int
{
@ -14018,7 +14018,7 @@ namespace OpenTK.Graphics.ES20
}
/// <summary>
/// Not used directly.
/// Used in GL.GetTexParameter
/// </summary>
public enum GetTextureParameter : int
{
@ -18619,6 +18619,53 @@ namespace OpenTK.Graphics.ES20
Patches = ((int)0x000E) ,
}
/// <summary>
/// Used in GL.GetProgram
/// </summary>
public enum ProgramParameter : int
{
/// <summary>
/// Original was GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257
/// </summary>
ProgramBinaryRetrievableHint = ((int)0x8257) ,
/// <summary>
/// Original was GL_DELETE_STATUS = 0x8B80
/// </summary>
DeleteStatus = ((int)0x8B80) ,
/// <summary>
/// Original was GL_LINK_STATUS = 0x8B82
/// </summary>
LinkStatus = ((int)0x8B82) ,
/// <summary>
/// Original was GL_VALIDATE_STATUS = 0x8B83
/// </summary>
ValidateStatus = ((int)0x8B83) ,
/// <summary>
/// Original was GL_INFO_LOG_LENGTH = 0x8B84
/// </summary>
InfoLogLength = ((int)0x8B84) ,
/// <summary>
/// Original was GL_ATTACHED_SHADERS = 0x8B85
/// </summary>
AttachedShaders = ((int)0x8B85) ,
/// <summary>
/// Original was GL_ACTIVE_UNIFORMS = 0x8B86
/// </summary>
ActiveUniforms = ((int)0x8B86) ,
/// <summary>
/// Original was GL_ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87
/// </summary>
ActiveUniformMaxLength = ((int)0x8B87) ,
/// <summary>
/// Original was GL_ACTIVE_ATTRIBUTES = 0x8B89
/// </summary>
ActiveAttributes = ((int)0x8B89) ,
/// <summary>
/// Original was GL_ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A
/// </summary>
ActiveAttributeMaxLength = ((int)0x8B8A) ,
}
/// <summary>
/// Used in GL.Ext.ProgramParameter
/// </summary>
@ -19532,6 +19579,125 @@ namespace OpenTK.Graphics.ES20
Double = ((int)0x140A) ,
}
/// <summary>
/// Used in GL.TexImage2D, GL.Oes.TexImage3D
/// </summary>
public enum TextureComponentCount : int
{
/// <summary>
/// Original was GL_ALPHA = 0X1906
/// </summary>
Alpha = ((int)0X1906) ,
/// <summary>
/// Original was GL_RGB = 0X1907
/// </summary>
Rgb = ((int)0X1907) ,
/// <summary>
/// Original was GL_RGBA = 0X1908
/// </summary>
Rgba = ((int)0X1908) ,
/// <summary>
/// Original was GL_LUMINANCE = 0X1909
/// </summary>
Luminance = ((int)0X1909) ,
/// <summary>
/// Original was GL_LUMINANCE_ALPHA = 0x190A
/// </summary>
LuminanceAlpha = ((int)0x190A) ,
/// <summary>
/// Original was GL_ALPHA8_EXT = 0x803C
/// </summary>
Alpha8Ext = ((int)0x803C) ,
/// <summary>
/// Original was GL_LUMINANCE8_EXT = 0x8040
/// </summary>
Luminance8Ext = ((int)0x8040) ,
/// <summary>
/// Original was GL_LUMINANCE8_ALPHA8_EXT = 0x8045
/// </summary>
Luminance8Alpha8Ext = ((int)0x8045) ,
/// <summary>
/// Original was GL_RGB10_EXT = 0x8052
/// </summary>
Rgb10Ext = ((int)0x8052) ,
/// <summary>
/// Original was GL_RGB10_A2_EXT = 0x8059
/// </summary>
Rgb10A2Ext = ((int)0x8059) ,
/// <summary>
/// Original was GL_R8_EXT = 0x8229
/// </summary>
R8Ext = ((int)0x8229) ,
/// <summary>
/// Original was GL_RG8_EXT = 0x822B
/// </summary>
Rg8Ext = ((int)0x822B) ,
/// <summary>
/// Original was GL_R16F_EXT = 0x822D
/// </summary>
R16fExt = ((int)0x822D) ,
/// <summary>
/// Original was GL_R32F_EXT = 0x822E
/// </summary>
R32fExt = ((int)0x822E) ,
/// <summary>
/// Original was GL_RG16F_EXT = 0x822F
/// </summary>
Rg16fExt = ((int)0x822F) ,
/// <summary>
/// Original was GL_RG32F_EXT = 0x8230
/// </summary>
Rg32fExt = ((int)0x8230) ,
/// <summary>
/// Original was GL_RGBA32F_EXT = 0x8814
/// </summary>
Rgba32fExt = ((int)0x8814) ,
/// <summary>
/// Original was GL_RGB32F_EXT = 0x8815
/// </summary>
Rgb32fExt = ((int)0x8815) ,
/// <summary>
/// Original was GL_ALPHA32F_EXT = 0x8816
/// </summary>
Alpha32fExt = ((int)0x8816) ,
/// <summary>
/// Original was GL_LUMINANCE32F_EXT = 0x8818
/// </summary>
Luminance32fExt = ((int)0x8818) ,
/// <summary>
/// Original was GL_LUMINANCE_ALPHA32F_EXT = 0x8819
/// </summary>
LuminanceAlpha32fExt = ((int)0x8819) ,
/// <summary>
/// Original was GL_RGBA16F_EXT = 0x881A
/// </summary>
Rgba16fExt = ((int)0x881A) ,
/// <summary>
/// Original was GL_RGB16F_EXT = 0x881B
/// </summary>
Rgb16fExt = ((int)0x881B) ,
/// <summary>
/// Original was GL_ALPHA16F_EXT = 0x881C
/// </summary>
Alpha16fExt = ((int)0x881C) ,
/// <summary>
/// Original was GL_LUMINANCE16F_EXT = 0x881E
/// </summary>
Luminance16fExt = ((int)0x881E) ,
/// <summary>
/// Original was GL_LUMINANCE_ALPHA16F_EXT = 0x881F
/// </summary>
LuminanceAlpha16fExt = ((int)0x881F) ,
/// <summary>
/// Original was GL_RGB_RAW_422_APPLE = 0x8A51
/// </summary>
RgbRaw422Apple = ((int)0x8A51) ,
/// <summary>
/// Original was GL_BGRA8_EXT = 0x93A1
/// </summary>
Bgra8Ext = ((int)0x93A1) ,
}
/// <summary>
/// Not used directly.
/// </summary>
@ -20101,7 +20267,7 @@ namespace OpenTK.Graphics.ES20
}
/// <summary>
/// Used in GL.CompressedTexImage2D, GL.CompressedTexSubImage2D and 7 other functions
/// Used in GL.CompressedTexImage2D, GL.CompressedTexSubImage2D and 6 other functions
/// </summary>
public enum TextureTarget2d : int
{
@ -20136,7 +20302,7 @@ namespace OpenTK.Graphics.ES20
}
/// <summary>
/// Used in GL.Oes.CompressedTexImage3D, GL.Oes.CompressedTexSubImage3D and 3 other functions
/// Used in GL.Ext.TexStorage3D, GL.Oes.CompressedTexImage3D and 4 other functions
/// </summary>
public enum TextureTarget3d : int
{