Functions | |
void | Show_Shader (char const *name, char *definition, char *shader_source) |
void | PShow_Net_Shader (int count, HC_KEY const *keys, char const *name, char *output, char *shader_source) |
void | PShow_One_Net_Shader_Option (int count, HC_KEY const *keys, char const *name, char const *opt, char *output) |
void Show_Shader | ( | char const * | name, | |
char * | definition, | |||
char * | shader_source | |||
) |
Returns the options and source associated with the shader whose name was passed.
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. |
void 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.
keycount | 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. | |
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. |
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.
void 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.
keycount | 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. |