Functions | |
HC_BOOLEAN | PShow_Net_Shader (int count, HC_KEY const *keys, char const *name, char *output, char *shader_source) |
Similar to Show_Shader(), but returns the net effective value along a discrete segment path. More... | |
HC_BOOLEAN | PShow_One_Net_Shader_Option (int count, HC_KEY const *keys, char const *name, char const *opt, char *output) |
Returns the value of the requested option set for a specific shader. More... | |
void | Show_Shader (char const *name, char *definition, char *shader_source) |
Returns the options and source associated with the shader whose name was passed. More... | |
Detailed Description
Function Documentation
◆ PShow_Net_Shader()
HC_BOOLEAN PShow_Net_Shader | ( | int | count, |
HC_KEY const * | keys, | ||
char const * | name, | ||
char * | output, | ||
char * | shader_source | ||
) |
Similar to Show_Shader(), but returns the net effective value along a discrete segment path.
- Parameters
-
count The size of keys keys An array of HC_KEY's delineating a path of segments. name The name of the shader you want to see the details for. output A string containing a comma-separated list of the options associated with this shader. Passed by reference. Returned to user. shader_source the source associated with this shader. Passed by reference. Returned to user.
DETAILS
As with all PShow_Net_* routines, keys[0] represents the lowest (a.k.a the "most local" or "leaf"), and key[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 keys 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.
◆ PShow_One_Net_Shader_Option()
HC_BOOLEAN PShow_One_Net_Shader_Option | ( | int | count, |
HC_KEY const * | keys, | ||
char const * | name, | ||
char const * | opt, | ||
char * | output | ||
) |
Returns the value of the requested option set for a specific shader.
- Parameters
-
count The size of keys keys An array of HC_KEY's delineating a path of segments. name the name of the shader you want to see the details for. opt the option you want to see the details for. output the value of the option requested. Passed by reference. Returned to user.
DETAILS
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 additional details, see Define_Shader().
◆ Show_Shader()
void Show_Shader | ( | char const * | name, |
char * | definition, | ||
char * | shader_source | ||
) |
Returns the options and source associated with the shader whose name was passed.
- Parameters
-
name the name of the shader you want to see the details for. definition a string containing a comma-separated list of the options associated with this shader. Passed by reference. Returned to user. shader_source the source associated with this shader. Passed by reference. Returned to user.
DETAILS
No additional details. See Define_Shader().