NAME
cgCreateParameterArray - creates a parameter array
SYNOPSIS
#include <Cg/cg.h> CGparameter cgCreateParameter(CGcontext ctx, CGtype type, int length);PARAMETERS
- ctx
Specifies 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.
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.
RETURN VALUES
Returns the handle to the new parameter array.
EXAMPLES
CGcontext Context = cgCreateContext(); CGparameter MyFloatArray = cgCreateParameterArray(Context, CG_FLOAT, 5);ERRORS
CG_INVALID_VALUE_TYPE_ERROR is generated if type is invalid.
CG_INVALID_CONTEXT_HANDLE_ERROR if ctx is invalid.
SEE ALSO
cgCreateParameter, cgCreateParameterMultiDimArray, and cgDestroyParameter