The OpenGL version of the color chooser widget, contained in libGLColorChooser.a, is identical in usage and functionality to the IRIS GL version of the color chooser widget found in libSgm. (Refer to the man page on SgColorChooser for a description of the color chooser widget.) OpenGL applications wanting to use the color chooser widget, must link with the libGLColorChooser.a library instead of libSgm to pick up the OpenGL version of the widget. Applications using the OpenGL color chooser must also link with libGL, libGLU, and libGLw.The include files found in the includes directory, are duplicates of the SgColorChooser widget include files for libSgm (found in /usr/include/Sgm), modified for use with OpenGL. Applications using the OpenGL version of the SgColorChooser widget MUST use the .h files provided in the includes directory, rather than the files found in /usr/include/Sgm. For completeness, we have left these includes/*.h files in place to keep them with the library, so the OpenGL version of this widget is consistent with the GL version found in libSgm & /usr/include/Sgm. See the man page on SgColorChooser for the appropriate usage of the include files.
The IRIX5.3 subdirectory contains the version of libGLColorChooser.a compiled on an IRIX 5.3 system; the IRIX5.2 subdirectory contains the version of libGLColorChooser.a compiled on an IRIX 5.2 system. For Toolbox version 5.0, there is a symlink in this directory pointing to IRIX5.3/libGLColorChooser.a.
The sample program, chooser_sample.c, illustrates the most basic use of the OpenGL color chooser widget. To invoke the color chooser widget, select "Actions" from the menu bar, then "Color Chooser" from the menu. Makefile puts it all together.
Ann LaGrone, 1994