Jump to content
  • Advertisement

Archived

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

mdog1234

texture compression

This topic is 5372 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!