| Function Name | Description |
|---|---|
| XintGlAllocateColormap | Allocates a colormap for a specifed visual. |
| XintGlChooseVisual | Chooses a visual compatible with OpenGL. |
When creating multiple View3D widgets, XintGlAllocateColormap can be used to make sure they all share the same colormap. This function requires a visual compatible with OpenGL, which can be obtained by calling function XintGlChooseVisual or by calling OpenGL function glXChooseVisual.
Colormap XintGlAllocateColormap (...)
| Display * | display | Display ID. |
| int | screen | Screen number. |
| Visual * | visual | Visual for the colormap. |
| Boolean | use_default_colormap | If False, function always allocates a new colormap. If True, function returns the default colormap if the visual passed is equal to the default visual. |
Visual *XintGlChooseVisual(...)
| Display * | display | Display ID. |
| int | screen | Screen number. |