Rechercher une page de manuel
cgCreateEffectParameterArray
Langue: en
Version: 46739 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgCreateEffectParameterArray - create an array parameter in an effectSYNOPSIS
#include <Cg/cg.h>
CGparameter cgCreateEffectParameterArray( CGeffect effect, const char * name, CGtype type, int length );
PARAMETERS
- effect
- The effect to which the new parameter will be added.
- name
- The name of the new parameter.
- type
- The type of the new parameter.
- length
- The size of the array.
RETURN VALUES
Returns the handle to the new array parameter on success.Returns NULL if an error occurs.
DESCRIPTION
cgCreateEffectParameterArray adds a new array parameter to the specificed effect.EXAMPLES
CGeffect effect = cgCreateEffect( ... ); CGparameter array = cgCreateEffectParameterArray( effect, "myFloatArray", CG_FLOAT, 2 );
ERRORS
CG_INVALID_EFFECT_HANDLE_ERROR is generated if effect is not a valid effect.CG_INVALID_VALUE_TYPE_ERROR is generated if type is invalid.
HISTORY
cgCreateEffectParameterArray was introduced in Cg 1.5.SEE ALSO
the cgCreateEffectParameter manpage, the cgCreateEffectParameterMultiDimArray manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre