Sprite

sfml.graphics.Sprite
See theSprite companion trait
object Sprite

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Sprite.type

Members list

Type members

Classlikes

object ctor

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
ctor.type

Types

opaque type ctor

Value members

Concrete methods

def apply(texture: Immutable[Texture]): Sprite

Construct the sprite from a source texture.

Construct the sprite from a source texture.

Value parameters

texture

Source texture

Attributes

See also
def apply(texture: Immutable[Texture], rectangle: Immutable[Rect[Int]]): Sprite

Construct the sprite from a sub-rectangle of a source texture.

Construct the sprite from a sub-rectangle of a source texture.

Value parameters

rectangle

Sub-rectangle of the texture to assign to the sprite

texture

Source texture

Attributes

See also

Extensions

Extensions

extension (self: Immutable[Sprite])
def globalBounds: Rect[Float]
def localBounds: Rect[Float]