#include <Shade.h>
Inherits DynamicObject.
Inherited by FlatShade, Material, Reflective, ShadeBlend, Texture, and Turbulence.
Inheritance diagram for Shade:


Public Methods | |
| Shade () | |
| virtual | ~Shade () |
| virtual Color4 | calculateColor (const SurfaceInfo &s, Scene &scene) |
| virtual void | transform (Matrix4 &m) |
| void | parseSymbol (Token &t, ObjectFile &file) |
| Reads a single parameter sections inside the body of the object description. More... | |
Protected Methods | |
| void | createSymbols () |
| Creates all parameter symbols that are used within the body of the object description. | |
|
||||||||||||
|
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 DynamicObject. Reimplemented in FlatShade. |