Jump to content
  • Advertisement

Archived

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

brekehan

Determine size of texture

This topic is 5729 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
Advertisement
In NeHe''s tutorials, the images itself are destroyed (freed) after they have been put into a texture. Evaluate sizex/sizey right after the auxDIBImageLoad() call.

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!