Results 1 to 2 of 2

Thread: Resizing texture

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2008
    Posts
    3

    Resizing texture

    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?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Oct 2009
    Posts
    132

    Re: Resizing texture

    you can use glReadPixels to get pixels back from the framebuffer.

    http://www.opengl.org/documentation/...eadpixels.html

Similar Threads

  1. Resizing the Line
    By fuzal in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-23-2012, 05:38 PM
  2. Resizing a texture?
    By Soum in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 05-05-2006, 12:47 PM
  3. Window Resizing
    By Brennan in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-02-2005, 01:52 PM
  4. Resizing a texture
    By Austrian Coder in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-25-2003, 09:54 AM
  5. resizing a texture?
    By blender in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 09-12-2002, 04:47 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