Handles animated textures (textures that move)
Definition: moving_texture.hpp:34
void setTextureMatrix(core::matrix4 *matrix)
Sets the texture matrix.
Definition: moving_texture.hpp:62
float m_x
Current x,y position.
Definition: moving_texture.hpp:45
float m_dx
Translation increment per second.
Definition: moving_texture.hpp:37
core::matrix4 * m_matrix
The texture matrix of this texture.
Definition: moving_texture.hpp:47
float m_dt
Delta set by user and count.
Definition: moving_texture.hpp:40
void setSpeed(float dx, float dy)
Sets the speed of the animation.
Definition: moving_texture.hpp:60