Unix and Linux Discussions Tagged with current |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
11,576 |
Shell Programming and Scripting |
|
|
|
2 |
11,792 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
4,537 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
5,324 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
6,057 |
Shell Programming and Scripting |
|
|
|
6 |
7,082 |
What is on Your Mind? |
|
|
|
0 |
5,493 |
Web Development |
|
|
|
8 |
3,855 |
What is on Your Mind? |
|
|
|
1 |
2,386 |
Shell Programming and Scripting |
|
|
|
0 |
1,533 |
Software Releases - RSS News |
|
|
|
0 |
1,488 |
Software Releases - RSS News |
|
|
|
4 |
36,560 |
Shell Programming and Scripting |
|
|
|
0 |
1,293 |
Software Releases - RSS News |
|
|
|
5 |
29,933 |
AIX |
|
|
|
0 |
1,219 |
Software Releases - RSS News |
|
|
|
0 |
1,022 |
Software Releases - RSS News |
|
|
|
0 |
2,434 |
Programming |
|
|
|
0 |
1,128 |
Software Releases - RSS News |
|
|
|
3 |
38,362 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,183 |
Software Releases - RSS News |
|
|
|
0 |
1,548 |
Software Releases - RSS News |
|
|
|
2 |
16,524 |
Ubuntu |
|
|
|
1 |
5,740 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,209 |
Software Releases - RSS News |
|
|
|
8 |
11,443 |
AIX |
|
|
|
0 |
1,667 |
Software Releases - RSS News |
|
|
|
0 |
1,364 |
Software Releases - RSS News |
|
|
|
4 |
9,291 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
10,784 |
Shell Programming and Scripting |
|
|
|
0 |
1,135 |
Software Releases - RSS News |
|
|
|
16 |
156,072 |
Programming |
|
|
|
4 |
9,336 |
Programming |
|
|
|
1 |
4,615 |
Shell Programming and Scripting |
|
|
|
3 |
37,336 |
Shell Programming and Scripting |
|
|
|
4 |
4,613 |
Programming |
|
|
|
1 |
7,191 |
Shell Programming and Scripting |
|
|
|
2 |
5,926 |
Shell Programming and Scripting |
|
|
|
1 |
4,273 |
Shell Programming and Scripting |
|
|
|
2 |
13,645 |
Shell Programming and Scripting |
|
|
|
4 |
3,004 |
UNIX for Dummies Questions & Answers |
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 functions also implicitly use the current window .
Many OpenGLUT callback operations are tied to a window. When your callback is invoked, OpenGLUT will set that particular window to be the
current 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 callback you should always use glutSetWindow() to select the appro-
priate 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 con-
siderable liberaty with respect to when it invokes your functions. Also, your program may add more windows or more operations on other win-
dows 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