PDA

View Full Version : Resizing texture



Argumn
05-13-2009, 01:11 AM
Hello,

I have the case that I need to resize a jpg to another size, my idea was to try that with opengl and textures.
What would the basic way be? I apply the image as texture to an object. this object should be in screen coords and in the size I need, is this correct? then how can I get the texture back from the gpu back?

James A.
05-13-2009, 03:25 AM
you can use glReadPixels to get pixels back from the framebuffer.

http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/readpixels.html