Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glutcopycolormap(3glut) [osx man page]

glutCopyColormap(3GLUT) 					       GLUT						   glutCopyColormap(3GLUT)

glutCopyColormap - copies the logical colormap for the layer in use from a specified window to the current window. SYNTAX
#include <GLUT/glut.h> void glutCopyColormap(int win); ARGUMENTS
win The identifier of the window to copy the logical colormap from. DESCRIPTION
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 index windows. EXAMPLE
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; glutInitDisplayMode(GLUT_INDEX); 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"); glutCopyColormap(win1); SEE ALSO
glutSetColor, glutGetColor, glutCreateWindow AUTHOR
Mark J. Kilgard ( GLUT
3.7 glutCopyColormap(3GLUT)

Check Out this Related Man Page

glutLayerGet(3GLUT)						       GLUT						       glutLayerGet(3GLUT)

glutLayerGet - retrieves GLUT state pertaining to the layers of the current window. SYNTAX
#include <GLUT/glut.h> int glutLayerGet(GLenum info); ARGUMENTS
info Name of device information to retrieve. GLUT_OVERLAY_POSSIBLE 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. GLUT_LAYER_IN_USE Either GLUT_NORMAL or GLUT_OVERLAY depending on whether the normal plane or overlay is the layer in use. GLUT_HAS_OVERLAY If the current window has an overlay established. GLUT_TRANSPARENT_INDEX The transparent color index of the overlay of the current window; negative one is returned if no overlay is in use. GLUT_NORMAL_DAMAGED 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. GLUT_OVERLAY_DAMAGED 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 use. DESCRIPTION
glutLayerGet retrieves GLUT layer information for the current window represented by integers. The info parameter determines what type of layer information to return. SEE ALSO
glutEstablishOverlay, glutUseOverlay, glutCreateWindow, glutSetColor AUTHOR
Mark J. Kilgard ( GLUT
3.7 glutLayerGet(3GLUT)
Man Page

5 More Discussions You Might Find Interesting

1. IP Networking

Routing problem

Hi 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)
Discussion started by: Mark Detrez
2 Replies

2. UNIX for Dummies Questions & Answers

Graphics microsoft windows on Unix

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)
Discussion started by: Amino
1 Replies

3. UNIX for Dummies Questions & Answers

Connecting with X-win problem

Hello all, 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)
Discussion started by: dragunu
2 Replies

4. IP Networking

IPerf and windows copy

Hi, 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)
Discussion started by: Mack1982
1 Replies

5. UNIX for Beginners Questions & Answers

Modified or latest files copy from windows to Linux

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)
Discussion started by: SourabhChavan
2 Replies