Functions | |
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. More... | |
void | Show_Explicit_Color (const char *type, const char *channel, float *rgb, char *texture, char *options) |
Returns the various components of a color definition. More... | |
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. |
As with all PShow_Net_* routines, pathkeys[0] represents the lowest (a.k.a the "most local" or "leaf"), and pathkeys[keycount-1] represents the highest segment. If the path is incomplete, missing segments are filled in if possible. Missing segments must be part of the same direct ancestry in order to be filled in. If the desired path contains an include link, the shortest unambiguous set of pathkeys would be [leaf, includelink, root], where includelink is the return value from Include_Segment().
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().
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. |
No additional details. See Set_Explicit_Color().
For the texture parameter, this function will take into account only globally defined textures and locally defined textures in the currently open segment.