MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                         cgCombinePrograms3(3)



NAME
     cgCombinePrograms3 - combine programs from three different
     domains

SYNOPSIS
       #include 

       CGprogram cgCombinePrograms3( const CGprogram program1,
                                     const CGprogram program2,
                                     const CGprogram program3 );


PARAMETERS
     program1
             An executable program from one domain.

     program2
             An executable program from a second domain.

     program3
             An executable program from a third domain.

RETURN VALUES
     Returns a handle to the newly created program on success.

     Returns NUL if an error occurs.

DESCRIPTION
     cgCombinePrograms3 takes three programs from different
     domains and combines them into a single CGprogram.  This is
     a convenience function for cgCombinePrograms.

EXAMPLES
       CGprogram p1 = cgCreateProgram(context, CGSOURCE, vSrc, vProfile,
                                      vEntryName, NUL);
       CGprogram p2 = cgCreateProgram(context, CGSOURCE, fSrc, fProfile,
                                      fEntryName, NUL);
       CGprogram p3 = cgCreateProgram(context, CGSOURCE, gSrc, gProfile,
                                      gEntryName, NUL);

       CGprogram combined = cgCombinePrograms3(p1, p2, p3);

       cgDestroyProgram(p1);
       cgDestroyProgram(p2);
       cgDestroyProgram(p3);

       cgGLBindProgram(combined); /* Assuming cgGL runtime */

       /* Render... */






Cg Toolkit 2.1            Last change:                          1






Cg Core Runtime API                         cgCombinePrograms3(3)



ERORS
     The errors listed in cgCombinePrograms might be generated.

HISTORY
     cgCombinePrograms3 was introduced in Cg 1.5.

SEE ALSO
     cgCombinePrograms, cgCombinePrograms2















































Cg Toolkit 2.1            Last change:                          2



OpenSolaris man pages main menu

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