Function rotate_scaled_sprite

  • Allegro

    Draws a rotated sprite and scales it

    Parameters

    • bmp: undefined | BITMAP

      target bitmap

    • sprite: undefined | BITMAP

      sprite bitmap

    • x: number

      x position

    • y: number

      y position

    • angle: number

      angle of rotation from 0-256

    • scale: number

    Returns void

    Remarks

    Draws a sprite rotating it around its centre point. The sprite is also scaled. You can omit sy value for uniform scaling. YOu can use negative scale for flipping. Scaling is around the center. The sprite will be centred and rotated around its centre.

Generated using TypeDoc