Related Functions: ufoEditorGetOverlayIndex
int ufoEditorGetOverlayIndex( ufoEditor editor_instance int colour_index); void ufoEditorGetOverlayIndexRange( ufoEditor editor_instance, int * min_colour_index); int * max_colour_index);
ufoEditorGetOverlayIndex gets the correct colour index to be used for setting the overlay colours in OpenGL prior to drawing in the overlay plane. This is necessary as the Softimage Compositor splits the overlay plane and reserves half for specific tools, requiring an offset to be taken into consideration.
ufoEditorGetOverlayIndexRange gets the range of valid index to colour values which can be set and used when drawing into the overlay.
The transparent colour index is always 0, and colour indices 1, 2, and 3 relate to user-definable colours, accessed through the application preferences interface.
ufoEditorGetOverlayIndex and ufoEditorGetOverlayIndexRange may be called within any editor user function.
Autodesk Softimage v7.5