PDA

View Full Version : Loading different sized images



jdmarsh2005
11-24-2009, 01:25 PM
How in openGL is it possible to load up images of sizes not of the power 2 onto textures? If someone could link me to a tutorial or give me a hint how i'd appreciate it a lot.

Frodak
11-24-2009, 02:23 PM
Depending upon your drivers you can either use NPOT textures, Texture Rectangles, or pad the image to fit within power of 2.

http://www.nvidia.com/dev_content/nvopenglspecs/GL_ARB_texture_non_power_of_two.txt
http://www.opengl.org/registry/specs/ARB/texture_rectangle.txt

ZbuffeR
11-25-2009, 02:39 AM
Some context ;
http://www.opengl.org/wiki/NPOT_Textures