Results 1 to 4 of 4

Thread: clearing

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2009
    Posts
    21

    clearing

    Is there a way to clear everything at a certain depth but not below it?

    I have a drawing program and I want the drawing to always exist, but I'm trying to show a cursor. In order to draw the cursor moving, I have to clear it. I was hoping I could accomplish this with some sort of depth trick.

    Any suggestions?

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    744

    Re: clearing

    Depth tricks won't work here.
    Use a FBO to save the drawing in.

  3. #3
    Junior Member Newbie
    Join Date
    Jan 2009
    Posts
    21

    Re: clearing

    so i did some reading on FBO. Are you suggestion that I render my drawing as a texture in an FBO and then use that as my background texture? something like that...

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,042

    Re: clearing

    Yep, that's how it's meant.
    GLIM - Immediate Mode Emulation for GL3

Similar Threads

  1. clearing a point
    By blaze157 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-29-2014, 01:15 PM
  2. Clearing SSBO
    By Mustard in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-15-2013, 03:35 AM
  3. Clearing buffers?
    By Dr Dogg in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-20-2004, 05:05 AM
  4. Clearing the buffer
    By tclay in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-18-2000, 08:07 AM
  5. Clearing the window
    By J.Warrick in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-03-2000, 08:20 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