C4 Engine
C4 Engine API Documentation

class RotateSprocket

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

class RotateSprocket final : public Sprocket

Constructor

RotateSprocket(float speed);

Parameters
speed The rotation speed, in revolutions per millisecond.
Description
The RotateSprocket class rotates the texture coordinates of an image widget at the angular rate specified by the speed parameter. A positive speed rotates counterclockwise, and a negative speed rotates clockwise.
Base Classes
Sprocket A RotateSprocket is a specific type of sprocket.