Results 1 to 4 of 4

Thread: stretching image for power-of-two texture

  1. #1
    Guest

    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,
    uwe

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    569

    Re: stretching image for power-of-two texture

    check out 'glScaleImage'

  3. #3
    Guest

    Re: stretching image for power-of-two texture

    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,
    Uwe

  4. #4
    Guest

    Re: stretching image for power-of-two texture

    ...found it. it's called gluScaleImage().

Similar Threads

  1. stretching a texture with mouse
    By Giancarlo in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-30-2010, 03:25 PM
  2. Texture Stretching
    By abhijit in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-11-2006, 01:01 PM
  3. how can I make texture from non power of 2 image
    By doojin in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 01-07-2004, 12:49 PM
  4. texture stretching
    By Old GLman in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-26-2002, 11:32 AM
  5. Texture stretching question
    By Ace_Man in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-31-2000, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean