Cg Core Runtime API cgCreateEffectParameterMultiDimArray(3)
NAME
cgCreateEffectParameterultiDimArray - create a multi-
dimensional array in an effect
SYNOPSIS
#include
CGparameter cgCreateEffectParameterMultiDimArray( CGeffect effect,
const char * name,
CGtype type,
int dim,
const int * lengths );
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.
dim The dimension of the array.
lengths The sizes for each dimension of the array.
RETURN VALUES
Returns the handle of the new parameter on success.
Returns NUL if an error occurs.
DESCRIPTION
cgCreateEffectParameterultiDimArray adds a new
multidimensional array parameter to the specified effect.
EXAMPLES
CGeffect effect = cgCreateEffect( ... );
int lengths[] = {2,2};
CGparameter array = cgCreateEffectParameterMultiDimArray(effect,
"myFloatMultiArray", CGFLOAT, 2, lengths);
ERORS
CGINVALIDEFECTHANDLEROR is generated if effect is not
a valid effect.
CGINVALIDVALUETYPEROR is generated if type is invalid.
HISTORY
cgCreateEffectParameterultiDimArray was introduced in Cg
1.5.
Cg Toolkit 2.1 Last change: 1
Cg Core Runtime API cgCreateEffectParameterMultiDimArray(3)
SEE ALSO
cgCreateEffectParameter, cgCreateEffectParameterArray
Cg Toolkit 2.1 Last change: 2
|