AnimateSprocketclass causes an image widget's texture coordinates to animate through a grid.
class AnimateSprocket final : public Sprocket
AnimateSprocket(const Integer2D& count, int32 total, float rate);
||The number of grid cells in the texture map horizontally and vertically.|
||The total number of grid cells that contain animation frames.|
||The animation rate, in frames per millisecond.|
AnimateSprocketclass plays a sequence of frames from a texture map in an image widget. The
countparameter specifies how many equal-sized grid cells exist in the texture map, and the
totalparameter specifies the total number of grid cells that should be used in the animation, starting at the upper-left corner and proceeding to the right through each row and downward through the rows.