|
enum class | Action : uint8_t { NONE
, REMOVE_EFFECT
, REMOVE_WIDGET
} |
|
Definition at line 33 of file effects.hpp.
◆ UpdateModelview()
Pass a function that gets the time the effect is in use and a reference to the Modelview so that it can update it.
Wiggle effect example:
.
scale(1 + effectIntensity * 0.1);
});
Mat3 & scale(float factor)
Multiplies the matrix by a scaling matrix.
Mat3 & rotate(float radian)
Multiplies the matrix with a rotation matrix.
jngl::Mat3 modelview()
Returns a copy of the global ModelView matrix.
◆ step()
◆ beginDraw()
◆ endDraw()
◆ updateModelview()
void updateModelview |
( |
Mat3 & | modelview | ) |
const |
|
overridevirtual |
Called before drawing the widget.
Reimplemented from Effect.
The documentation for this class was generated from the following file: