5
#include "../../SyntopiaCore/Math/Matrix4.h"
7
namespace StructureSynth {
10
class Rule; // Forward
12
/// A state represent the current rendering projection matrix and other rendering settings.
15
State(const State& rhs);
18
State& operator=(const State& rhs);
20
void setPrevMatrix(SyntopiaCore::Math::Matrix4f matrix);
22
SyntopiaCore::Math::Matrix4f matrix; // Transformation matrix (4x4 homogenous representation)
23
SyntopiaCore::Math::Vector3f hsv; // Hue, Saturation, Value colorspace state
24
float alpha; // Transparency
25
QMap<const Rule*, int> maxDepths; // Rules may have a max. recursion depth before they are retired.
26
// We need to keep track of this in the state.
27
SyntopiaCore::Math::Matrix4f* prevMatrix; // previous matrix (if stored)