Rechercher une page de manuel
cgGetNamedState
Langue: en
Version: 46989 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgGetNamedState - get a context state by nameSYNOPSIS
#include <Cg/cg.h>
CGstate cgGetNamedState( CGcontext context, const char * name );
PARAMETERS
- context
- The context from which to retrieve the state.
- name
- The name of the state to retrieve.
RETURN VALUES
Returns the named state from the context.Returns NULL if the context has no state corresponding to name.
DESCRIPTION
The states of a context can be retrieved directly by name using cgGetNamedState. The names of the states in a context can be discovered by iterating through the context's states (see the cgGetFirstState manpage and the cgGetNextState manpage), calling the cgGetStateName manpage for each one in turn.EXAMPLES
to-be-writtenERRORS
CG_INVALID_PARAMETER_ERROR is generated if name is NULL.HISTORY
cgGetNamedState was introduced in Cg 1.4.SEE ALSO
the cgCreateState manpage, the cgGetFirstState manpage, the cgGetNextState manpage, the cgGetStateEnumerantName manpage, the cgGetStateEnumerantValue manpage, the cgGetStateName manpage, the cgGetStateType manpage, the cgIsState manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre