Results 1 to 2 of 2

Thread: Howto create a Texture out of backbuffer?

  1. #1
    Guest

    Howto create a Texture out of backbuffer?

    Hi there!

    I want to create a texture out of my Backbuffer and really dont know how to do this.
    I know that it should work with copyteximage2d, but I?m new to Opengl, and I dont know how to allocate the needed memory and so on...

    It would be really kind if anybody could post a snippit working code, otherwise I?m afraid I wont understand it

    mfg Susanne

  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Turin
    Posts
    258

    Re: Howto create a Texture out of backbuffer?

    You don't have to allocate data space as the function you wrote copies directly to a texture...
    To copy to a memory region use glCopyPixels
    [rIO^sPINNING kIDS] - rio@nospam.spinningkids.org

    -/- This is a signature virus. Add it to your signature. Help it spreading! -/-

Similar Threads

  1. Backbuffer as Texture
    By jos_t_tarigan in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-27-2010, 12:59 PM
  2. Howto create a planet halo of light and a starfield
    By zingbat in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 08-09-2006, 06:24 PM
  3. gamedarwinia: digital sky - howto create similiar effect?
    By herc in forum OpenGL: Basic Coding
    Replies: 16
    Last Post: 04-24-2006, 01:23 PM
  4. GLUT: Howto create Windows without decoration?
    By Linuxhippy in forum OpenGL: General
    Replies: 1
    Last Post: 10-22-2003, 08:19 AM
  5. Newbie: Howto create a Screensaver
    By PeterKla in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 04-14-2002, 11:05 AM

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