From f7a81084585db027d0da9298bc35450303627d34 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 31 Oct 2007 17:41:23 +0000 Subject: [PATCH] Added support for PixelInternalFormat. This is used in all *Tex(Sub)Image* functions. --- Source/Bind/Specifications/GL2/enum.spec | 11 +++++++++++ Source/Bind/Specifications/GL2/gl.spec | 10 ++++++---- Source/Bind/Specifications/csharp.tm | 2 ++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Source/Bind/Specifications/GL2/enum.spec b/Source/Bind/Specifications/GL2/enum.spec index 1f5db534..c85ce6de 100644 --- a/Source/Bind/Specifications/GL2/enum.spec +++ b/Source/Bind/Specifications/GL2/enum.spec @@ -1961,6 +1961,17 @@ PixelInternalFormat enum: use SGIX_icc_texture INTENSITY16_ICC_SGIX use SGIX_icc_texture LUMINANCE16_ALPHA8_ICC_SGIX + # Revision 2 + ONE = 1 + TWO = 2 + THREE = 3 + FOUR = 4 + use PixelFormat ALPHA + use PixelFormat LUMINANCE + use PixelFormat LUMINANCE_ALPHA + use PixelFormat RGB + use PixelFormat RGBA + ############################################################################### InterleavedArrayFormat enum: diff --git a/Source/Bind/Specifications/GL2/gl.spec b/Source/Bind/Specifications/GL2/gl.spec index 41545c01..c4833691 100644 --- a/Source/Bind/Specifications/GL2/gl.spec +++ b/Source/Bind/Specifications/GL2/gl.spec @@ -2000,11 +2000,12 @@ TexParameteriv(target, pname, params) wglflags small-data offset 181 +# Revision 2 TexImage1D(target, level, internalformat, width, border, format, type, pixels) return void param target TextureTarget in value param level CheckedInt32 in value - param internalformat TextureComponentCount in value + param internalformat PixelInternalFormat in value # TextureComponentCount in value param width SizeI in value param border CheckedInt32 in value param format PixelFormat in value @@ -2020,11 +2021,12 @@ TexImage1D(target, level, internalformat, width, border, format, type, pixels) wglflags client-handcode server-handcode offset 182 +# Revision 2 TexImage2D(target, level, internalformat, width, height, border, format, type, pixels) return void param target TextureTarget in value param level CheckedInt32 in value - param internalformat TextureComponentCount in value + param internalformat PixelInternalFormat in value # TextureComponentCount in value param width SizeI in value param height SizeI in value param border CheckedInt32 in value @@ -4430,13 +4432,13 @@ ResetMinmax(target) offset 370 # OpenGL 1.2 (EXT_texture3D) commands - +# Revision 2 # Arguably TexelInternalFormat, not PixelInternalFormat TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels) return void param target TextureTarget in value param level CheckedInt32 in value - param internalformat TextureComponentCount in value + param internalformat PixelInternalFormat in value # TextureComponentCount in value param width SizeI in value param height SizeI in value param depth SizeI in value diff --git a/Source/Bind/Specifications/csharp.tm b/Source/Bind/Specifications/csharp.tm index 12af34d7..fa105893 100644 --- a/Source/Bind/Specifications/csharp.tm +++ b/Source/Bind/Specifications/csharp.tm @@ -20,6 +20,8 @@ GLdouble, Double GLclampd, Double GLstring, String +PixelInternalFormat, PixelInternalFormat + # ARB and NV types. GLsizeiptrARB, IntPtr GLintptrARB, IntPtr