shiny  0.4
a shader and material management library for OGRE
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Static Public Member Functions | List of all members
sh::Preprocessor Class Reference

A simple interface for the boost::wave preprocessor. More...

#include <Preprocessor.hpp>

Static Public Member Functions

static std::string preprocess (std::string source, const std::string &includePath, std::vector< std::string > definitions, const std::string &name)
 Run a shader source string through the preprocessor. More...
 

Detailed Description

A simple interface for the boost::wave preprocessor.

Member Function Documentation

◆ preprocess()

static std::string sh::Preprocessor::preprocess ( std::string  source,
const std::string &  includePath,
std::vector< std::string >  definitions,
const std::string &  name 
)
static

Run a shader source string through the preprocessor.

Parameters
sourcesource string
includePathpath to search for includes (that are included with #include)
definitionsmacros to predefine (vector of strings of the format MACRO=value, or just MACRO to define it as 1)
namename to use for error messages
Returns
processed string

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