DecOp Class Reference#include <shaderOp.h>
Inheritance diagram for DecOp: ![]() Detailed DescriptionDecOp - Declaration Operation - Used when declaring a variable in a shader feature. It will automatically print the type of the variable and then the variable name. If a shader feature set up code like:
Var *foo = new Var; foo->setType( "float" ); foo->setName( "foo" ); LangElement *fooDecl = new DecOp( foo ); LangElement *statement = new GenOp( " @ = 8.0 * 5.0;", fooDecl ); The output in the shader file would be:
float foo = 8.0 * 5.0;
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Reimplemented from LangElement.
|