glutCopyColormap(3GLUT) GLUT glutCopyColormap(3GLUT)NAME
glutCopyColormap - copies the logical colormap for the layer in use from a specified window to the current window.
SYNTAX
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 (mjk@nvidia.com)
GLUT 3.7 glutCopyColormap(3GLUT)
Check Out this Related Man Page
glutCopyColormap(3GLUT) GLUT glutCopyColormap(3GLUT)NAME
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 (mjk@nvidia.com)
GLUT 3.7 glutCopyColormap(3GLUT)
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)
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)
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)
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)
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)