NAME

cgDestroyProgram - delete a program object

SYNOPSIS

  #include <Cg/cg.h>

  void cgDestroyProgram( CGprogram prog );

PARAMETERS

prog

Specifies the program object to delete.

DESCRIPTION

cgDestroyProgram removes the specified program object and all its associated data. Any CGprogram variables that reference this program will become invalid after the program is deleted. Likewise, any objects contained by this program (e.g. CGparameter objects) will also become invalid after the program is deleted.

ERRORS

CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog is an invalid program handle.

SEE ALSO

cgCreateProgram cgCreateProgramFromFile