C4 Engine
C4 Engine API Documentation

class ScrollSprocket

Defined in:  C4Sprockets.h
The ScrollSprocket class causes a widget's texture coordinates to scroll.
Definition

class ScrollSprocket final : public Sprocket

Constructor

ScrollSprocket(const Vector2D& speed);

Parameters
speed The scrolling speed, in pixels per millisecond.
Description
The ScrollSprocket class continually scrolls the texture coordinates of an image widget at the linear rate specified by the speed parameter.
Base Classes
Sprocket A ScrollSprocket is a specific type of sprocket.