RRSpinningImageRenderable

Objective-C

@interface RRSpinningImageRenderable : RRRenderable

Swift

class RRSpinningImageRenderable : RRRenderable

A renderable that creates a spinning textured quad renderable. Its rotation speed can be customized. The rotation angles can also be discretized. The spinning quad renderable is centered at local coordinate (0, 0, 0) and isplaced in the XY plane. Its size is normalized so that the longer image dimension has length 1.0. The image aspect ratio is preserved.

  • Default Initializer

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    init()
  • Initializer providing an image that should be animated

    Declaration

    Objective-C

    - (nonnull instancetype)initWithImage:(nonnull RRImage *)image;

    Swift

    init(image: RRImage)

    Parameters

    image

    The image that should be rendered in a spinning animation

  • The image that should be rendered in a spinning animation

    Declaration

    Objective-C

    @property (nonatomic, strong) RRImage *_Nonnull image;

    Swift

    var image: RRImage { get set }
  • The cycle duration for a full rotation in seconds

    Declaration

    Objective-C

    @property (nonatomic) CGFloat rotationCycleDuration;

    Swift

    var rotationCycleDuration: CGFloat { get set }
  • The number of discretized rotation angles within a full 360 degree rotation. If this value is 0, the rotation is continuous

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger numberOfDiscretizedRotationSteps;

    Swift

    var numberOfDiscretizedRotationSteps: UInt { get set }