Results 1 to 2 of 2

Thread: clear window

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

    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,595

    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

Similar Threads

  1. How to clear images?
    By Aekold in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-29-2011, 05:59 AM
  2. save current window drawing before clear?
    By Loderunner in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 02-21-2010, 01:41 PM
  3. How to clear a region of a window in OpenGL-ES
    By mustaf in forum OpenGL ES
    Replies: 6
    Last Post: 01-14-2009, 09:18 PM
  4. how to clear color of object from window?
    By meghnath in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-19-2005, 09:56 AM
  5. Can someone clear me up on AUX?
    By ninja770 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-17-2001, 09:47 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