Jump to content
  • Advertisement

Archived

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

Damocles

getting texture information of bound textures

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

I''m having problems getting image information out of a PNG library I''m using to load PNG files into OGL textures and so was wondering if it''s possible to retrieve the width/height of a already bound OGL texture? I looked through the glGet* commands and didn''t see anything that looked like it might get this data :/

Share this post


Link to post
Share on other sites
Advertisement
Like I said in my first post I''m having trouble getting that info to start with. The PNG library I''m using (GLPNG) crashes whenever I try to access the image info structures.

So I want to try and get the info out of already loaded, bound and discarded images.As a last resort, I''ll have to enter the information manually into a table.

The reaosn I''m going this is to create a warpper function that will render textures using uv coords so I can have multiple small textures on one large one and reduce texture swaps. I''d like to automate this process by obtaining image info at run-time.

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!