Rechercher une page de manuel
cgCopyProgram
Langue: en
Version: 46731 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
NAME
cgCopyProgram - make a copy of a program objectSYNOPSIS
#include <Cg/cg.h>
CGprogram cgCopyProgram( CGprogram program );
PARAMETERS
- program
- The program object to copy.
RETURN VALUES
Returns a copy of program on success.Returns NULL 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-writtenERRORS
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if program is not a valid program handle.HISTORY
cgCopyProgram was introduced in Cg 1.1.SEE ALSO
the cgCreateProgram manpage, the cgDestroyProgram manpageContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre