NvScopedShaderPrefix Class Reference

Convenience class to automatically push and pop a shader prefix using scoped auto-destruction. More...

#include <NvGLSLProgram.h>

List of all members.

Public Member Functions

 NvScopedShaderPrefix (const char *prefix)


Detailed Description

Convenience class to automatically push and pop a shader prefix using scoped auto-destruction.

The following code:

     {
         NvScopedShaderPrefix prefix("prefix code");
         // ... my block of prefixed code
     }
Is equivalent to:
     {
         NvGLSLProgram::setGlobalShaderHeader("prefix code");
         // ... my block of prefixed code
         NvGLSLProgram::setGlobalShaderHeader(NULL);
     }

The documentation for this class was generated from the following file: