MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                           cgSetParameter4f(3)



NAME
     cgSetParameter4f - set the value of scalar and vector
     parameters

SYNOPSIS
       #include 

       void cgSetParameter4f( CGparameter param,
                              float x,
                              float y,
                              float z,
                              float w );


PARAMETERS
     param   The parameter that will be set.

     x, y, z, w
             The values used to set param.

RETURN VALUES
     None.

DESCRIPTION
     cgSetParameter4f sets the value of a given scalar or vector
     parameter.

     If more values are passed in than param requires, the extra
     values will be ignored.

     Once cgSetParameter4f has been used to set a parameter, the
     values may be retrieved from the parameter using the
     CGCURENT enumerant with cgGetParameterValues.

     If an API-dependant layer of the Cg runtime (e.g. cgGL) is
     used, these entry points may end up making API (e.g. OpenGL)
     calls.

EXAMPLES
     to-be-written

ERORS
     CGINVALIDPARAMHANDLEROR is generated if param is not a
     valid parameter.

     CGINVALIDPARAMETEREROR is generated if param is a
     varying input to a fragment program.

HISTORY
     cgSetParameter4f was introduced in Cg 1.2.





Cg Toolkit 2.1            Last change:                          1






Cg Core Runtime API                           cgSetParameter4f(3)



SEE ALSO
     cgGetParameterValue, cgGetParameterValues





















































Cg Toolkit 2.1            Last change:                          2



OpenSolaris man pages main menu

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