View Full Version : stretching image for power-of-two texture

02-17-2005, 04:46 AM
hello all,
i have the challenge to stretch/squish an arbitrary size image to a square power-of-two size image to be used as a GL_TEXTURE_2D target. (i cannot use TEX_RECTANGLE).

what is the best procedure to resize the original image on-the-fly using OpenGL calls?

the OpelGL-Superbible states that i could use glPixelZoom() with glTexImage2D() but that does not seem to have any effect at all.

kind regards,

02-17-2005, 04:52 AM
check out 'glScaleImage'

02-17-2005, 05:24 AM
glScaleImage() does not seem to be in the microsoft OpenGL library. i have to use something which runs even on plain old mircosoft OpenGL.

kind regards,

02-17-2005, 06:47 AM
...found it. it's called gluScaleImage().