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: opengl texture

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    6

    opengl texture

    i enabled gl_texture_2d in my opengl program.
    i used a bitmap(256 * 256) picture,it works correctly, but the texture didn't affect when the pictue's size was changed (not
    256 * 256).
    where is probably the problem? thanks.

  2. #2
    Intern Newbie
    Join Date
    Mar 2003
    Posts
    38

    Re: opengl texture

    In opengl, you can use only textures with a size of a power of 2... If your new size is not a power of 2, it's normal that you see nothing !

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2003
    Location
    Charleville-Mézières (08) FRANCE
    Posts
    6

    Re: opengl texture

    You can use the NV_texture_rectangle extension to handle non power of two textures.
    If you want to work with power of two texture on the base of a rectangular image use the glScaleImage func

Posting Permissions

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