19#ifndef MOVING_TEXTURE_HPP
20#define MOVING_TEXTURE_HPP
22#include "utils/no_copy.hpp"
42 bool m_isAnimatedByStep;
62 void setSPTM(
float* sp_tm) { m_sp_tm = sp_tm; }
63 virtual void update (
float dt);
64 virtual void reset ();
Handles animated textures (textures that move)
Definition: moving_texture.hpp:34
void setTextureMatrix(core::matrix4 *matrix)
Sets the texture matrix.
Definition: moving_texture.hpp:61
virtual void reset()
Resets at (re)start of a race.
Definition: moving_texture.cpp:102
float m_x
Current x,y position.
Definition: moving_texture.hpp:45
virtual void update(float dt)
Updates the transform of an animated texture.
Definition: moving_texture.cpp:120
float m_dx
Translation increment per second.
Definition: moving_texture.hpp:37
virtual ~MovingTexture()
Destructor for an animated texture.
Definition: moving_texture.cpp:95
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:59
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:26
utility class used to parse XML files
Definition: xml_node.hpp:48