glutSetWindow man page on RedHat

Man page or keyword search:  
man Server   29550 pages
apropos Keyword Search (all sections)
Output format
RedHat logo
[printable version]

UNTITLED			     LOCAL			      UNTITLED

NAME
     glutSetWindow — Select the <i>current window</i>

LIBRARY
     OpenGLUT - window

SYNOPSIS
     #include <openglut.h>

     void
     glutSetWindow(int ID);

PARAMETERS
      ID	Window identifier

DESCRIPTION
     Sets the  current window	to  ID.

     All OpenGL rendering goes to the  current window  .  Many OpenGLUT func‐
     tions also implicitly use the  current window  .

     Many OpenGLUT callback operations are tied to a window.  When your call‐
     back is invoked, OpenGLUT will set that particular window to be the  cur‐
     rent window  .  However, some callbacks---such as that registered via
     glutIdleFunc()---do not have associated windows.  If a callback is not
     associated to a particular window, then when OpenGLUT invokes that call‐
     back you should  always   use glutSetWindow() to select the appropriate
     window before doing any OpenGL rendering or doing any OpenGLUT window-
     related operations.

     There may be cases when you can get away with assuming that the  current
     window   is unchanged since some prior time, but OpenGLUT has consider‐
     able liberaty with respect to when it invokes your functions.  Also, your
     program may add more windows or more operations on other windows as you
     develop it.

     Lastly, this is a convenient way to select among multiple windows for
     drawing without actually waiting for that window's display callback.
     Simply set the  current window   and draw immediately.  This is not
     always advisable, but may be practical.

     It is an error to set the	current window	 to a non-existant window
     (e.g., one that you have closed).	A warning will be printed on  stderr
     if you try to do so, and the  current window   should be unchanged.

SEE ALSO
     glutGetWindow(3)

				     Epoch
[top]

List of man pages available for RedHat

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net