Archived

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

brekehan

Determine size of texture

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