cgSetFloatAnnotation
Keywords: cgSetFloatAnnotation, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> cgSetFloatAnnotation - set the value of a float annotation

> ## Synopsis

>     #include <Cg/cg.h>

>     CGbool cgSetFloatAnnotation( CGannotation ann,
>                                  float value );

> ## Parameters

> ann
>   The annotation that will be set.
> value
>   The value to which ann will be set.

> ## Return Values

> Returns CG_TRUE if it succeeds in setting the annotation.

> Returns CG_FALSE otherwise.

> ## Description

> cgSetFloatAnnotation sets the value of an annotation of float type.

> ## Examples

> to-be-written

> ## Errors

> CG_INVALID_ANNOTATION_HANDLE_ERROR is generated if ann is not a valid annotation.

> CG_INVALID_PARAMETER_TYPE_ERROR is generated if ann is not an annotation of float type.

> CG_ARRAY_SIZE_MISMATCH_ERROR is generated if ann is not a scalar.

> ## History

> cgSetFloatAnnotation was introduced in Cg 1.5.

> ## See Also

> cgGetFloatAnnotationValues, cgSetBoolAnnotation, cgSetIntAnnotation, cgSetStringAnnotation