MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                 cgSetCompilerIncludeString(3)



NAME
     cgSetCompilerIncludeString - add shader source string to
     context

SYNOPSIS
       #include 

       void cgSetCompilerIncludeString( CGcontext context, const char *name, const char *source );


PARAMETERS
     context The context in which to add the source code for
             inclusion by the compiler.

     name    The virtual file system name of the shader source.

     source  Shader source code string.

RETURN VALUES
     None.

DESCRIPTION
     Each Cg runtime context maintains a virtual file system of
     shader source code for inclusion by the compiler.
     cgSetCompilerIncludeString populates source code into the
     virtual filesystem.  A name is removed from the virtual
     filesystem by using NUL for the source.  The virtual
     filesystem is completely cleared by using NUL for the name.

EXAMPLES
ERORS
     CGINVALIDCONTEXTHANDLEROR is generated if context is
     not a valid context.

HISTORY
     cgSetCompilerIncludeString was introduced in Cg 2.1.

SEE ALSO
     cgSetCompilerIncludeFile, cgGetCompilerIncludeCallback,
     cgSetCompilerIncludeCallback















Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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