Corrected tokens for TexBuffer. Fixes issue [#749]: "ARB_texture_ buffer_object" (http://www.opentk.com/node/749).

This commit is contained in:
the_fiddler 2009-05-29 16:02:50 +00:00
parent cf4a243c99
commit 1db5d3953a
6 changed files with 17 additions and 7 deletions

View file

@ -7107,6 +7107,9 @@ ProgramParameter enum:
use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCKS use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCKS
# Used in TexBuffer # Used in TexBuffer
TextureBufferTarget enum:
use VERSION_3_1 TEXTURE_BUFFER
SizedInternalFormat enum: SizedInternalFormat enum:
use PixelInternalFormat R8 use PixelInternalFormat R8
use PixelInternalFormat R16 use PixelInternalFormat R16

View file

@ -261,7 +261,9 @@
</function> </function>
<!-- Version 3.1 --> <!-- Version 3.1 -->
<function name="TexBuffer" extension="Core"> <function name="TexBuffer" extension="Core">
<param name="target"><type>TextureBufferTarget</type></param>
<param name="internalformat"><type>SizedInternalFormat</type></param> <param name="internalformat"><type>SizedInternalFormat</type></param>
</function> </function>

View file

@ -76564,13 +76564,13 @@ namespace OpenTK.Graphics
[System.CLSCompliant(false)] [System.CLSCompliant(false)]
[AutoGenerated(Category = "Version31", Version = "3.1", EntryPoint = "glTexBuffer")] [AutoGenerated(Category = "Version31", Version = "3.1", EntryPoint = "glTexBuffer")]
public static public static
void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer) void TexBuffer(OpenTK.Graphics.TextureBufferTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glTexBuffer((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SizedInternalFormat)internalformat, (UInt32)buffer); Delegates.glTexBuffer((OpenTK.Graphics.TextureBufferTarget)target, (OpenTK.Graphics.SizedInternalFormat)internalformat, (UInt32)buffer);
#if DEBUG #if DEBUG
} }
#endif #endif
@ -76578,13 +76578,13 @@ namespace OpenTK.Graphics
[AutoGenerated(Category = "Version31", Version = "3.1", EntryPoint = "glTexBuffer")] [AutoGenerated(Category = "Version31", Version = "3.1", EntryPoint = "glTexBuffer")]
public static public static
void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, Int32 buffer) void TexBuffer(OpenTK.Graphics.TextureBufferTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, Int32 buffer)
{ {
#if DEBUG #if DEBUG
using (new ErrorHelper(GraphicsContext.CurrentContext)) using (new ErrorHelper(GraphicsContext.CurrentContext))
{ {
#endif #endif
Delegates.glTexBuffer((OpenTK.Graphics.TextureTarget)target, (OpenTK.Graphics.SizedInternalFormat)internalformat, (UInt32)buffer); Delegates.glTexBuffer((OpenTK.Graphics.TextureBufferTarget)target, (OpenTK.Graphics.SizedInternalFormat)internalformat, (UInt32)buffer);
#if DEBUG #if DEBUG
} }
#endif #endif

View file

@ -1525,7 +1525,7 @@ namespace OpenTK.Graphics
internal extern static void TessellationModeAMD(OpenTK.Graphics.AmdVertexShaderTesselator mode); internal extern static void TessellationModeAMD(OpenTK.Graphics.AmdVertexShaderTesselator mode);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexBuffer", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexBuffer", ExactSpelling = true)]
internal extern static void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer); internal extern static void TexBuffer(OpenTK.Graphics.TextureBufferTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer);
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexCoord1d", ExactSpelling = true)] [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexCoord1d", ExactSpelling = true)]
internal extern static void TexCoord1d(Double s); internal extern static void TexCoord1d(Double s);

View file

@ -4064,7 +4064,7 @@ namespace OpenTK.Graphics
internal delegate bool TestObjectAPPLE(OpenTK.Graphics.AppleFence @object, UInt32 name); internal delegate bool TestObjectAPPLE(OpenTK.Graphics.AppleFence @object, UInt32 name);
internal static TestObjectAPPLE glTestObjectAPPLE; internal static TestObjectAPPLE glTestObjectAPPLE;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexBuffer(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer); internal delegate void TexBuffer(OpenTK.Graphics.TextureBufferTarget target, OpenTK.Graphics.SizedInternalFormat internalformat, UInt32 buffer);
internal static TexBuffer glTexBuffer; internal static TexBuffer glTexBuffer;
[System.Security.SuppressUnmanagedCodeSecurity()] [System.Security.SuppressUnmanagedCodeSecurity()]
internal delegate void TexBufferARB(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ArbTextureBufferObject internalformat, UInt32 buffer); internal delegate void TexBufferARB(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ArbTextureBufferObject internalformat, UInt32 buffer);

View file

@ -9665,6 +9665,11 @@ namespace OpenTK.Graphics
HalfFloat = ((int)0X140b), HalfFloat = ((int)0X140b),
} }
public enum TextureBufferTarget
{
TextureBuffer = ((int)0X8c2a),
}
public enum TextureCompareMode public enum TextureCompareMode
{ {
CompareRefToTexture = ((int)0X884e), CompareRefToTexture = ((int)0X884e),