DecOp Class Reference

#include <shaderOp.h>

Inheritance diagram for DecOp:

Inheritance graph
[legend]
List of all members.

Detailed Description

DecOp - 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;


Public Member Functions

 DecOp (Var *in1)
virtual void print (Stream &stream)

Private Types

typedef ShaderOp Parent


Member Typedef Documentation

typedef ShaderOp DecOp::Parent [private]


Constructor & Destructor Documentation

DecOp::DecOp ( Var in1  ) 


Member Function Documentation

virtual void DecOp::print ( Stream stream  )  [virtual]

Reimplemented from LangElement.