Archived

This topic is now archived and is closed to further replies.

mdog1234

texture compression

Recommended Posts

Im trying to learn about texture compression so I downloaded a tutorial from nvidias website. The only problem is that when I compile it i get and error that says GL_TEXTURE_IMAGE_SIZE_ARB is undeclared. Does anyone know why this is? I think I have the latest glext.h file(10/2/2003).

Share this post


Link to post
Share on other sites
I haven''t used the extension, but looking through glext.h


#ifndef GL_ARB_texture_compression
#define GL_COMPRESSED_ALPHA_ARB 0x84E9
#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA
#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
#define GL_COMPRESSED_INTENSITY_ARB 0x84EC
#define GL_COMPRESSED_RGB_ARB 0x84ED
#define GL_COMPRESSED_RGBA_ARB 0x84EE
#define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF
#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
#define GL_TEXTURE_COMPRESSED_ARB 0x86A1
#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
#endif

Did you mean GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB ?

BTW, the extension was incorporated into OpenGL 1.3, so you shouldn''t need the ARB bit, although you might still need to link some functions.

Share this post


Link to post
Share on other sites