cgCreatePass

Langue: en

Version: 46745 (openSuse - 09/10/07)

Section: 3 (Bibliothèques de fonctions)

NAME

cgCreatePass - create a pass in a technique

SYNOPSIS


  #include <Cg/cg.h>






  CGpass cgCreatePass( CGtechnique tech,

                       const char * name );





PARAMETERS


tech
The technique to which the new pass will be added.
name
The name of the new pass.

RETURN VALUES

Returns the handle to the new pass on success.

Returns NULL if any error occurs.

DESCRIPTION

cgCreatePass adds a new pass to the specified technique.

EXAMPLES

to-be-written

ERRORS

CG_INVALID_TECHNIQUE_HANDLE_ERROR is generated if tech is not a valid technique.

HISTORY

cgCreatePass was introduced in Cg 1.5.

SEE ALSO

the cgCreateTechnique manpage