Brief Index      Full Index      Events Index      I.M. Reference

Show_Shader

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)
 

Detailed Description

Function Documentation

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
namethe name of the shader you want to see the details for.
definitiona string containing a comma-separated list of the options associated with this shader. Passed by reference. Returned to user.
shader_sourcethe source associated with this shader. Passed by reference. Returned to user.

DETAILS

No additional details. See Define_Shader().

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.

Parameters
countThe size of keys
keysAn array of HC_KEY's delineating a path of segments.
nameThe name of the shader you want to see the details for.
outputA string containing a comma-separated list of the options associated with this shader. Passed by reference. Returned to user.
shader_sourcethe 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.

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.

Parameters
countThe size of keys
keysAn array of HC_KEY's delineating a path of segments.
namethe name of the shader you want to see the details for.
optthe option you want to see the details for.
outputthe 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().

Brief Index      Full Index      Events Index      I.M. Reference