API reference
Preparing search index…

sf::Sprite with the shared Transformable API.

Type hierarchy

Hierarchy

  • SpriteResource<this> & TransformableMethods
    • Sprite
Source & inheritance
Member directory28

Constructors

Properties

Methods

Constructors

Methods

  • Returns an independent copy of the sprite color.

    Returns

    Source & inheritance
  • Returns local bounds without applying the object's transform.

    Returns

    Source & inheritance
  • Return a copy of the rotation normalized to [0°, 360°).

    Returns

    Source & inheritance
  • Returns the texture reference retained by the sprite.

    Returns

    Readonly
    Source & inheritance
  • Sets the color multiplied channel-wise with the texture; Alpha can control overall opacity.

    Parameters

    this
    SpriteResource

    Returns

    void
    Source & inheritance
  • Replaces the texture reference; resetRect true resets the texture region to the entire texture.

    Parameters

    this
    SpriteResource
    texture
    Readonly
    resetRect
    boolean = false

    Returns

    void
    Source & inheritance
  • Copies the texture pixel region; width and height determine the local sprite size, and negative values can flip the texture.

    Parameters

    this
    SpriteResource

    Returns

    void
    Source & inheritance

Symbol members

"[graphicsNative]": NativeGraphicsHandle<"sprite">
Source & inheritance
"[mutableValue]": true
Source & inheritance
"[spriteState]": SpriteData
Source & inheritance
"[transformableState]": TransformableState
Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0