#include <ShadeBlend.h>
Inherits Shade.
Inheritance diagram for ShadeBlend:


Public Types | |
| enum | Operation { NoOp, Add, Multiply, Layer, In, HeldOut, Atop, Xor } |
| Blend operation. More... | |
Public Methods | |
| void | blend (Operation o, RefShade &s) |
| Color4 | calculateColor (const SurfaceInfo &s, Scene &scene) |
| void | parseSymbol (Token &t, ObjectFile &file) |
| Reads a single parameter sections inside the body of the object description. More... | |
| void | writeParams (ostream &stream) |
| Writes all parameter sections inside the body of the object description. More... | |
|
|
Blend operation.
Given two RGBA colors |
|
||||||||||||
|
Reads a single parameter sections inside the body of the object description. Each object has a set of parameter names associated with it, called symbols. Symbols are declared inside the createSymbols method. The method parseSymbol expects the Token t to be such a symbol and reads the corresponding parameters. Unknown symbols are passed to its super class.
Reimplemented from Shade. |
|
|
Writes all parameter sections inside the body of the object description. This method writes all object parameters to ostream. Inhereting classes will always call super::writeParams().
Reimplemented from DynamicObject. |