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

@ -7106,7 +7106,10 @@ ProgramParameter enum:
use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH
use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCKS
# Used in TexBuffer
# Used in TexBuffer
TextureBufferTarget enum:
use VERSION_3_1 TEXTURE_BUFFER
SizedInternalFormat enum:
use PixelInternalFormat R8
use PixelInternalFormat R16

View file

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

View file

@ -76564,13 +76564,13 @@ namespace OpenTK.Graphics
[System.CLSCompliant(false)]
[AutoGenerated(Category = "Version31", Version = "3.1", EntryPoint = "glTexBuffer")]
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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#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
}
#endif
@ -76578,13 +76578,13 @@ namespace OpenTK.Graphics
[AutoGenerated(Category = "Version31", Version = "3.1", EntryPoint = "glTexBuffer")]
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
using (new ErrorHelper(GraphicsContext.CurrentContext))
{
#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
}
#endif

View file

@ -1525,7 +1525,7 @@ namespace OpenTK.Graphics
internal extern static void TessellationModeAMD(OpenTK.Graphics.AmdVertexShaderTesselator mode);
[System.Security.SuppressUnmanagedCodeSecurity()]
[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.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexCoord1d", ExactSpelling = true)]
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 static TestObjectAPPLE glTestObjectAPPLE;
[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;
[System.Security.SuppressUnmanagedCodeSecurity()]
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),
}
public enum TextureBufferTarget
{
TextureBuffer = ((int)0X8c2a),
}
public enum TextureCompareMode
{
CompareRefToTexture = ((int)0X884e),