Rechercher une page de manuel
cgGetParameterBaseType
Langue: en
Version: 47012 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGetParameterBaseType - get a program parameter's base typeSYNOPSIS
#include <Cg/cg.h>
CGtype cgGetParameterBaseType( CGparameter param );
PARAMETERS
- param
- The parameter.
RETURN VALUES
Returns the base type enumerant of param.Returns CG_UNKNOWN_TYPE if an error occurs.
DESCRIPTION
cgGetParameterBaseType allows the application to retrieve the base type of a parameter.If param is of a numeric type (scalar, vector, or matrix), the scalar enumerant corresponding to param's type will be returned. For example, if param is of type CG_FLOAT4x3, cgGetParameterBaseType will return CG_FLOAT.
If param is an array, the base type of the array elements will be returned.
If param is a structure, its type-specific enumerant will be returned, as per cgGetParameterNamedType.
Otherwise, param's type enumerant will be returned.
EXAMPLES
to-be-writtenERRORS
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter.HISTORY
cgGetParameterBaseType was introduced in Cg 1.4.SEE ALSO
the cgGetParameterType manpage, the cgGetParameterNamedType manpage, the cgGetType manpage, the cgGetTypeString manpage, the cgGetParameterClass manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre