NAME
cgGetFirstProgram - get the first program in a context
SYNOPSIS
#include <Cg/cg.h> CGprogram cgGetFirstProgram( CGcontext context );PARAMETERS
- context
The context from which to retrieve the first program.
RETURN VALUES
cgGetFirstProgram returns a the first CGprogram object in context. If context contains no programs, NULL is returned.
DESCRIPTION
cgGetFirstProgram is used to begin iteration over all of the programs contained within a context. See cgGetNextProgram for more information.
EXAMPLES
to-be-written
ERRORS
CG_INVALID_CONTEXT_HANDLE_ERROR is generated if context does not refer to a valid context.
HISTORY
cgGetFirstProgram was introduced in Cg 1.1.
SEE ALSO
cgGetNextProgram, cgCreateProgram, cgDestroyProgram, cgIsProgram