#include <scalar_field.h>

Public Member Functions | |
| scalar_field (const string &f) | |
| Constructor. | |
| void | dl_gen (const screen &s) |
| Display-list generator. | |
This class takes a scalar-valued function of x, y and t and renders the resulting scalar field with a fragment shader. The shader expects the value of the function to be scaled between -1 and 1 and will clamp any value outside of that. (For instance, -10 gets mapped to the color for -1 and 1220 gets mapped to the value for 1).
Future versions will allow for a user-specified range, and ideally would also have a mode that automatically scales the values appropriately.
| glot::scalar_field::scalar_field | ( | const string & | f | ) | [inline] |
| void glot::scalar_field::dl_gen | ( | const screen & | s | ) | [virtual] |
Display-list generator.
| s | - the screen specs of the plot |
Implements glot::primitive.
1.5.8