Functions | |
void | Show_Explicit_Color (const char *type, const char *channel, float *rgb, char *texture, char *options) |
void | PShow_Net_Explicit_Color (int keycount, const HC_KEY *pathkeys, const char *type, const char *channel, float *rgb, char *texture, char *options) |
void Show_Explicit_Color | ( | const char * | type, | |
const char * | channel, | |||
float * | rgb, | |||
char * | texture, | |||
char * | options | |||
) |
Returns the various components of a color definition.
type | - The type of geometric primitive from which to query color settings. See Set_Color() for a list of types. | |
channel | - The channel for which to query color settings, one of: diffuse color, diffuse texture[=x], specular, bump or transmission. | |
rgb | - The RGB component of the requested color setting. Passed by reference. Returned to user. | |
texture | - The texture component of the requested color setting. Passed by reference. Returned to user. | |
options | - A string that contains information about the RGB component of the color. If the string returned is "ignore color", no RGB component was included in the color definition. If the returned string is "FIndex" then the RGB color component is an FIndex into a colormap. Passed by reference. Returned to user. |
void PShow_Net_Explicit_Color | ( | int | keycount, | |
const HC_KEY * | pathkeys, | |||
const char * | type, | |||
const char * | channel, | |||
float * | rgb, | |||
char * | texture, | |||
char * | options | |||
) |
Similar to Show_Explicit_Color(), but shows the net effective settings along a discrete segment path.
keycount | - The number of HC_KEY's in pathkeys. | |
pathkeys | - An array of HC_KEY's delineating a path of segments. | |
type | - The type of geometric primitive from which to query color settings. See Set_Color() for a list of types. | |
channel | - The channel for which to query color settings, one of: diffuse color, diffuse texture[=x], specular, bump or transmission. | |
rgb | - The RGB component of the requested color setting. Passed by reference. Returned to user. | |
texture | - The texture component of the requested color setting. Passed by reference. Returned to user. | |
options | - A string that contains information about the RGB component of the color. If the string returned is "ignore color", no RGB component was included in the color definition. If the returned string is "FIndex" then the RGB color component is an FIndex into a colormap. Passed by reference. Returned to user. |
By default, HOOPS will determine the Net attribute from the last specified key all the way to the root. If you add -1 at the end of the array, the PShow_Net routines will not proceed beyond the end of the last specified key.
For other details, see Show_Explicit_Color().