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 4 of 4

Thread: how to remove a quad from the scene?

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2006
    Posts
    6

    how to remove a quad from the scene?

    I've drawn a few quads on the screen with Display List. How can I move out one of them from the screen??

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: how to remove a quad from the scene?

    You have to redraw the scene without that quad.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2006
    Posts
    6

    Re: how to remove a quad from the scene?

    But how to clear the screen?? I have tried with ClearColor(), ClearDepth(0 but it's not working. I'm beginning with OpenGL and I don't really know how is it working. I also tried to find out how is it working from NeHe but I can't find it!

    In my program quads are falling from the top and stopping on the bottom of the screen. Now I want them to go back to the top and disappear. When first quad would dissapear I want second to go to the top and also disappear, etc.

    Please HELP!! How to do this??

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,749

    Re: how to remove a quad from the scene?

    glClear (GL_COLOR_BUFFER_BIT)

    For tuts about GL try nehe.

Posting Permissions

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