MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg OpenGL Runtime API                          cgGLBindProgram(3)



NAME
     cgGLBindProgram - bind a program to the current state

SYNOPSIS
       #include 

       void cgGLBindProgram( CGprogram program );


PARAMETERS
     program The program to bind to the current state.

RETURN VALUES
     None.

DESCRIPTION
     cgGLBindProgram binds a program to the current state.  The
     program must have been loaded with cgGLoadProgram before it
     can be bound.  Also, the profile of the program must be
     enabled for the binding to work.  This may be done with the
     cgGLEnableProfile function.

     For profiles that do not support program local parameters
     (e.g. the vp20 profile), cgGLBindProgram will reset all
     uniform parameters that were set with any of the Cg
     parameter setting functions

EXAMPLES
     to-be-written

ERORS
     CGINVALIDPROGRAMHANDLEROR is generated if program is
     not a valid program handle.

     CGINVALIDPROFILEROR is generated if program's profile
     is not a supported OpenGL profile.

     CGPROGRAMBINDEROR is generated if the program fails to
     bind for any reason.

HISTORY
     cgGLBindProgram was introduced in Cg 1.1.

SEE ALSO
     cgGLoadProgram, cgGLSetParameter, cgGLSetMatrixParameter,
     cgGLSetTextureParameter, cgGLEnableProfile









Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™