|
| | SpriteInfoWithoutBackground (size_t startX, size_t startY, const ISurface< RGB_T > &sourceSprite, RGB_T transparentColor, IFont< RGB_T > &font) |
| |
| void | saveOriginalPixels (ISurface< RGB_T > &) override |
| | Saves the background pixels currently covered by the sprite.
|
| |
| | SpriteInfo (size_t startX, size_t startY, const ISurface< RGB_T > &sourceSprite, RGB_T transparentColor, IFont< RGB_T > &font) |
| |
| virtual | ~SpriteInfo () |
| |
| Rect | getRect () const |
| |
| Rect | clampedSize (size_t rawWidth, size_t rawHeight) const |
| |
| const ISurface< RGB_T > & | currentSprite () const |
| | Returns the sprite image currently used for drawing.
|
| |
| virtual void | saveOriginalPixels (ISurface< RGB_T > &framebuffer) |
| | Saves the background pixels currently covered by the sprite.
|
| |
| void | onTouch (Point point) |
| |
| void | setMaxSize (size_t maxX, size_t maxY) |
| | Set the maximum buffer size for transformedSprite and allocate buffer.
|
| |
| void | setTransformedSprite (SurfaceT &&newSprite) |
| |
template<typename RGB_T = RGB565, typename SurfaceT = Surface<RGB_T>>
struct tinygpu::SpriteInfoWithoutBackground< RGB_T, SurfaceT >
A specialized SpriteInfo that does not save the background pixels.
This is useful for sprites that do not need to restore the background, such as those that are always drawn on a solid color or when the background is managed separately.