NAME
cgGLLoadProgram - prepares a program for binding
SYNOPSIS
#include <Cg/cgGL.h> void cgGLLoadProgram(CGprogram prog);PARAMETERS
- prog
Specifies the program.
DESCRIPTION
cgGLLoadProgram 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.
RETURN VALUES
cgGLLoadProgram does not return any values.
ERRORS
CG_INVALID_PROFILE_ERROR is generated if prog's profile is not a supported OpenGL profile.
CG_INVALID_PROGRAM_HANDLE_ERROR is generated if prog is not a valid program.
CG_PROGRAM_LOAD_ERROR is generated if the program fails to load for any reason.
SEE ALSO