Cg OpenGL Runtime API cgGLoadProgram(3)
NAME
cgGLoadProgram - prepares a program for binding
SYNOPSIS
#include
void cgGLoadProgram( CGprogram program );
PARAMETERS
program The program which will be loaded.
RETURN VALUES
None.
DESCRIPTION
cgGLoadProgram prepares a program for binding. All
programs must be loaded before they can be bound to the
current state. See cgGLBindProgram for more information
about binding programs.
EXAMPLES
to-be-written
ERORS
CGINVALIDPROFILEROR is generated if program's profile
is not a supported OpenGL profile.
CGINVALIDPROGRAMHANDLEROR is generated if program is
not a valid program handle.
CGPROGRAMLOADEROR is generated if the program fails to
load for any reason.
HISTORY
cgGLoadProgram was introduced in Cg 1.1.
SEE ALSO
cgGLIsProgramLoaded, cgGLBindProgram
Cg Toolkit 2.1 Last change: 1
|