Sprite.getTexture

Get the source texture of the sprite.

If the sprite has no source texture, a NULL pointer is returned. The returned pointer is const, which means that you can't modify the texture when you retrieve it with this function.

class Sprite
const
const(Texture)
getTexture
()

Return Value

Type: const(Texture)

The sprite's texture.

Meta