Rechercher une page de manuel
cgGetNamedStructParameter
Langue: en
Version: 46991 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGetNamedStructParameter - get a struct parameter by nameSYNOPSIS
#include <Cg/cg.h>
CGparameter cgGetNamedStructParameter( CGparameter param, const char * name );
PARAMETERS
- param
- The struct parameter from which to retrieve the member parameter.
- name
- The name of the member parameter to retrieve.
RETURN VALUES
Returns the member parameter from the given struct.Returns NULL if the struct has no member parameter corresponding to name.
DESCRIPTION
The member parameters of a struct parameter may be retrieved directly by name using cgGetNamedStructParameter.The names of the parameters in a struct may be discovered by iterating through the struct's member parameters (see cgGetFirstStructParameter and cgGetNextParameter), and calling cgGetParameterName for each one in turn.
EXAMPLES
to-be-writtenERRORS
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.CG_INVALID_PARAMETER_TYPE_ERROR is generated if param is not a struct parameter.
HISTORY
cgGetNamedStructParameter was introduced in Cg 1.2.SEE ALSO
the cgGetFirstStructParameter manpage, the cgGetNextParameter manpage, the cgGetParameterName manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre