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

Value members

Concrete methods

def apply(): Sprite

Default constructor.

Default constructor.

Creates an empty sprite with no source texture.

Attributes

def apply(texture: Texture): Sprite

Construct the sprite from a source texture.

Construct the sprite from a source texture.

Value parameters

texture

Source texture

Attributes

See also

Extensions

Extensions

extension (sprite: Immutable[Sprite])
def draw(target: RenderTarget, states: RenderStates): Unit
def globalBounds: Immutable[Rect[Float]]
def localBounds: Immutable[Rect[Float]]