getting texture information of bound textures
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 :/
You should make a table with the ID of the bound textures, and their width, and other info you need to know...
Height Map Editor | Eternal Lands | Fast User Directory
[edited by - Raduprv on August 16, 2003 12:30:08 PM]
Height Map Editor | Eternal Lands | Fast User Directory
[edited by - Raduprv on August 16, 2003 12:30:08 PM]
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement