stretching image for power-of-two texture

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,

check out ‘glScaleImage’

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,

…found it. it’s called gluScaleImage().