parameters

The algorithm assumes that a set of paramaters might be necessary to determine its behavior. These parameters will be listed in a struct, declared in the specification following the parameters-keyword. An instance of this struct will be passed to the algorithm, where its contents can be passed to the subroutines where necessary. Its syntax is regular C++, omitting the struct keyword and closing semicolon. For example:
% parameters: Params { // opening '{' must be on the same line
  float x, y, z;
  int q;
}
If the parameters are omitted, an empty struct called Params will be generated.



Joren Heit 2013-12-17