texture property

SpriteTexture texture
getter/setter pair

The texture that the sprite will render to screen.

If the texture is null, the sprite will be rendered as a red square marking the bounds of the sprite.

mySprite.texture = myTexture;

Implementation

SpriteTexture texture;