MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                              cgCopyProgram(3)



NAME
     cgCopyProgram - make a copy of a program object

SYNOPSIS
       #include 

       CGprogram cgCopyProgram( CGprogram program );


PARAMETERS
     program The program object to copy.

RETURN VALUES
     Returns a copy of program on success.

     Returns NUL if program is invalid or the copy fails.

DESCRIPTION
     cgCopyProgram creates a new program object that is a copy of
     program and adds it to the same context as program.
     cgCopyProgram is useful for creating a new instance of a
     program whose parameter properties have been modified by the
     run-time API.

EXAMPLES
     to-be-written

ERORS
     CGINVALIDPROGRAMHANDLEROR is generated if program is
     not a valid program handle.

HISTORY
     cgCopyProgram was introduced in Cg 1.1.

SEE ALSO
     cgCreateProgram, cgDestroyProgram



















Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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