Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Loading different sized images

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2009
    Posts
    1

    Loading different sized images

    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.

  2. #2
    Junior Member Newbie
    Join Date
    Nov 2009
    Posts
    11

    Re: Loading different sized images

    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/nv...wer_of_two.txt
    http://www.opengl.org/registry/specs..._rectangle.txt

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Loading different sized images


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •