Rechercher une page de manuel
cgGetParameterType
Langue: en
Version: 47027 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGetParameterType - get a program parameter's typeSYNOPSIS
#include <Cg/cg.h>
CGtype cgGetParameterType( CGparameter param );
PARAMETERS
- param
- The parameter.
RETURN VALUES
Returns the type enumerant of param.Returns CG_UNKNOWN_TYPE if an error occurs.
DESCRIPTION
cgGetParameterType allows the application to retrieve the type of a parameter in a Cg program. This type is necessary for the application to be able to supply the program's inputs and use the program's outputs.cgGetParameterType will return CG_STRUCT if the parameter is a struct and CG_ARRAY if the parameter is an array. Otherwise it will return the data type associated with the parameter.
EXAMPLES
to-be-writtenERRORS
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.HISTORY
cgGetParameterType was introduced in Cg 1.1.SEE ALSO
the cgGetType manpage, the cgGetParameterBaseType manpage, the cgGetTypeString manpage, the cgGetParameterClass manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre