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

Determine size of texture

This topic is 5536 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

My program uses nehe''s bitmap loading routine to load textures right now. It seems to have a variable AUX_RGBImageRec *image I searched google and it says that this is part of GLaux.lib. I am interested in its members ->sizex and ->sizey as perhaps a way to get the size of the bitmap but my debugger cannot evaluate the value after the bitmap is loaded and before it is bound (which seems the proper place to me), it comes up as: "sizeX CXX0030: Error: expression cannot be evaluated" how do i get that to a number of pixels? Is there any documentation on AUX_RGBImageRec anywhere so I can tell what type these members are? Or perhaps there is a better way to go about it? Thanx, Christopher

Share this post

Link to post
Share on other sites