Cg Core Runtime API cgGetProgramContext(3)
NAME
cgGetProgramContext - get a programs parent context
SYNOPSIS
#include
CGcontext cgGetProgramContext( CGprogram program );
PARAMETERS
program The program.
RETURN VALUES
Returns a CGcontext handle to the parent context.
Returns NUL if an error occurs.
DESCRIPTION
cgGetProgramContext allows the application to retrieve a
handle to the context to which a given program belongs.
EXAMPLES
to-be-written
ERORS
CGINVALIDPROGRAMHANDLEROR is generated if program is
not a valid program handle.
HISTORY
cgGetProgramContext was introduced in Cg 1.1.
SEE ALSO
cgCreateProgram, cgCreateContext
Cg Toolkit 2.1 Last change: 1
|