Selects a particular sprite for drawing Future drawing actions are sent to this sprite: use something like `Layer(0)` to start drawing to a layer again. Sprites can be repeatedly re-rendered with a single command and their appearance may be cached for efficiency. Actions that affect the whole canvas or layers are not permitted in sprites.
(&mut self, sprite_id: SpriteId)
| 182 | /// cached for efficiency. Actions that affect the whole canvas or layers are not permitted in |
| 183 | /// sprites. |
| 184 | fn sprite(&mut self, sprite_id: SpriteId) { self.draw(Draw::Sprite(sprite_id)); } |
| 185 | |
| 186 | /// Releases the resources used by the current sprite |
| 187 | fn clear_sprite(&mut self) { self.draw(Draw::ClearSprite); } |