MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API               cgCreateEffectParameterArray(3)



NAME
     cgCreateEffectParameterArray - create an array parameter in
     an effect

SYNOPSIS
       #include 

       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 NUL if an error occurs.

DESCRIPTION
     cgCreateEffectParameterArray adds a new array parameter to
     the specificed effect.

EXAMPLES
       CGeffect effect = cgCreateEffect( ... );
       CGparameter array = cgCreateEffectParameterArray( effect, "myFloatArray",
                                                         CGFLOAT, 2 );


ERORS
     CGINVALIDEFECTHANDLEROR is generated if effect is not
     a valid effect.

     CGINVALIDVALUETYPEROR is generated if type is invalid.

HISTORY
     cgCreateEffectParameterArray was introduced in Cg 1.5.

SEE ALSO
     cgCreateEffectParameter,
     cgCreateEffectParameterMultiDimArray






Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™