NAME
cgCreateParameterArray - creates a parameter array
SYNOPSIS
#include <Cg/cg.h> CGparameter cgCreateParameterArray( CGcontext context, CGtype type, int length );PARAMETERS
- context
The context that the new parameter will be added to.
- type
The type of the new parameter.
- length
The length of the array being created.
RETURN VALUES
Returns the handle to the new parameter array.
DESCRIPTION
cgCreateParameterArray creates context level shared parameter arrays. These parameters are primarily used by connecting them to one or more program parameter arrays with cgConnectParameter.
cgCreateParameterArray works similarly to cgCreateParameter. Instead of creating a single parameter, it creates an array of them.
EXAMPLES
CGcontext context = cgCreateContext(); CGparameter param = cgCreateParameterArray(context, CG_FLOAT, 5);ERRORS
CG_INVALID_VALUE_TYPE_ERROR is generated if type is invalid.
CG_INVALID_CONTEXT_HANDLE_ERROR if context is invalid.
HISTORY
cgCreateParameterArray was introduced in Cg 1.2.
SEE ALSO
cgCreateParameter, cgCreateParameterMultiDimArray, cgDestroyParameter