Rechercher une page de manuel
cgGetIntStateAssignmentValues
Langue: en
Version: 46967 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGetIntStateAssignmentValues - get an int-valued state assignment's valuesSYNOPSIS
#include <Cg/cg.h>
const int * cgGetIntStateAssignmentValues( CGstateassignment sa, int * nvalues );
PARAMETERS
- sa
- The state assignment from which the values will be retrieved.
- nvalues
- Pointer to integer where the number of values returned will be stored.
RETURN VALUES
Returns a pointer to an array of int values. The number of values in the array is returned via the nvalues parameter.Returns NULL if an error occurs or if no values are available. nvalues will be 0 in the latter case.
DESCRIPTION
cgGetIntStateAssignmentValues allows the application to retrieve the value(s) of an integer typed state assignment.EXAMPLES
to-be-writtenERRORS
CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR is generated if sa is not a valid state assignment.CG_INVALID_PARAMETER_ERROR is generated if nvalues is NULL.
CG_STATE_ASSIGNMENT_TYPE_MISMATCH_ERROR is generated if sa is not a state assignment of an integer type.
HISTORY
cgGetIntStateAssignmentValues was introduced in Cg 1.4.SEE ALSO
the cgGetStateAssignmentState manpage, the cgGetStateType manpage, the cgGetFloatStateAssignmentValues manpage, the cgGetBoolStateAssignmentValues manpage, the cgGetStringStateAssignmentValue manpage, the cgGetProgramStateAssignmentValue manpage, the cgGetSamplerStateAssignmentValue manpage, the cgGetTextureStateAssignmentValue manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre