PDA

View Full Version : Resizing a texture



Austrian Coder
04-25-2003, 07:28 AM
Hi!

I want to resize a texture, if the texture size is not supported by hardware.

glGetIntegerv(GL_MAX_TEXTURE_SIZE, &m_maxtexturesize);

Lets say m_maxtexturesize = 256 and i want to load an 512x512 image. How can i size it down to 256x256?

Thanks, Austrian Coder

Rog
04-25-2003, 08:24 AM
Just take a look at this post earlier:
http://www.opengl.org/discussion_boards/ubb/Forum2/HTML/012633.html

gluScaleImage will do what you want ....

Austrian Coder
04-25-2003, 08:54 AM
Thanks!