glutCopyColormap(3GLUT) GLUT glutCopyColormap(3GLUT)NAME
glutCopyColormap - copies the logical colormap for the layer in use from a specified window to the current window.
void glutCopyColormap(int win);
win The identifier of the window to copy the logical colormap from.
glutCopyColormap copies (lazily if possible to promote sharing) the logical colormap from a specified window to the current window's layer
in use. The copy will be from the normal plane to the normal plane; or from the overlay to the overlay (never across different layers).
Once a colormap has been copied, avoid setting cells in the colormap with glutSetColor since that will force an actual copy of the colormap
if it was previously copied by reference. glutCopyColormap should only be called when both the current window and the win window are color
Here is an example of how to create two color index GLUT windows with their colormaps loaded identically and so that the windows are likely
to share the same colormap:
int win1, win2;
win1 = glutCreateWindow("first color index win");
glutSetColor(0, 0.0, 0.0, 0.0); /* black */
glutSetColor(1, 0.5, 0.5, 0.5); /* gray */
glutSetColor(2, 1.0, 1.0, 1.0); /* black */
glutSetColor(3, 1.0, 0.0, 0.0); /* red */
win2 = glutCreateWindow("second color index win");
glutSetColor, glutGetColor, glutCreateWindow
Mark J. Kilgard (email@example.com)
GLUT 3.7 glutCopyColormap(3GLUT)
Check Out this Related Man Page
glutLayerGet(3GLUT) GLUT glutLayerGet(3GLUT)NAME
glutLayerGet - retrieves GLUT state pertaining to the layers of the current window.
int glutLayerGet(GLenum info);
info Name of device information to retrieve.
Whether an overlay could be established for the current window given the current initial display mode. If false, glutEstablishOver-
lay will fail with a fatal error if called.
Either GLUT_NORMAL or GLUT_OVERLAY depending on whether the normal plane or overlay is the layer in use.
If the current window has an overlay established.
The transparent color index of the overlay of the current window; negative one is returned if no overlay is in use.
True if the normal plane of the current window has damaged (by window system activity) since the last display callback was trig-
gered. Calling glutPostRedisplay will not set this true.
True if the overlay plane of the current window has damaged (by window system activity) since the last display callback was trig-
gered. Calling glutPostRedisplay or glutPostOverlayRedisplay will not set this true. Negative one is returned if no overlay is in
glutLayerGet retrieves GLUT layer information for the current window represented by integers. The info parameter determines what type of
layer information to return.
glutEstablishOverlay, glutUseOverlay, glutCreateWindow, glutSetColor
Mark J. Kilgard (firstname.lastname@example.org)
GLUT 3.7 glutLayerGet(3GLUT)
I know this problem is more likely some windows problem but it has also something to do with unix.
We have a windows nt environment wich uses AIX (unix) machines as file servers (samba). In our windows network environment we nicely see al the unix file servers via the 10 MB network. Last... (2 Replies)
Does anyone know that exist a program on unix to use microsoft windows on remote pc ?
I need a program that makes the opposite of Execed.
I have a Sun workstation and I want to control a pc to use windows program.
Thanks a lot for the answers. (1 Reply)
I am trying to connect to my Solaris 8 system with X-win. However, when i try to connect, a black screen comes up, then closes up immediatley.
I have checked /var/dt/Xerrors, and I am getting the folllowing:
Warning: Missing charsets in String to FontSet conversion
Warning:... (2 Replies)
Some of my backups were running slow, so i decided to use iperf to check network throughput. Between 2 windows systems (on the same switch) i got about 1-2MB. However, when i tried to copy some files from the on windows server to the other i got around 10-12MB. This is over a 1Gig link.
... (1 Reply)
To copy the file from windows to linux i use pscp command(pscp source user@destination). Know i want to copy the latest modified or created files from windows to linux. could any one please help me out with it.
Thanks and Regards,
Sourabh (2 Replies)