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

Thread: clear window

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2003
    Posts
    2

    clear window

    how do i clear the window?
    i know in books they said glclearcolor and glclear(..|..|..)

    this is the problem, i'm making menus like 'new game', 'option', 'quit', etc. that one works just fine.
    when i press 'option', i want to have a new clear window again, so i can make a different menus like 'texture mapping', 'shading', etc, and the 'back' option so i can go back to the main menu.

    Thanks in advance, really appreciate it

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: clear window

    Hi !

    glClear() is used to clear one or more of the OpenGL buffers, I assume that you are using glut or some other library here, the menus in glut has nothing to do with OpenGL so you have to look into the glut documentation to find out how to change the menus.

    Mikael

Posting Permissions

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