Jump to content
  • Advertisement

Archived

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

stefu

Asking for max texture width and height?

This topic is 6240 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 OGL app gives totally white texture if I try to create texture with size of 512x512 pixels. I know that my device can use max. 256x256 textures (Voodoo3, D3DCAPS8 told it). How can I ask for max width & height of texture in OpenGL to resize my texture? [edit] And how to know if textures must be sized to power of two? Or can I suppose they must be? Edited by - stefu on July 20, 2001 4:23:07 AM

Share this post


Link to post
Share on other sites
Advertisement
You must use glGet with GL_MAX_TEXTURE_SIZE.

The textures must always be sized to power of two! (except if you use some NVIDIA extensions...)

Share this post


Link to post
Share on other sites
also u can use gluScaleImage to rescale an image eg from 512x512 -> 256x256

http://members.xoom.com/myBollux

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!