The VectorSprite
example creates a simple animated sprite (a rotating line), and
creates the sprite's bitmaps by creating and drawing to off-screen
bitmaps within the application. No redraw events are caused by the
sprite.
Click on the following link to download the example: VectorSprite.zip
Click: browse to view the example code.
CSprite: Demonstrates how to use class RWsSprite by setting up the sprite members to contain bitmaps then appending them to the sprite. The bitmaps are off screen bitmaps drawn to using a graphics context
RWsSpriteBase
: Abstract base class for sprites
RWsSprite
: Sprite
TSpriteMember
: Sprite member
CFbsBitmap
: Font-bitmap server bitmap
CFbsBitmapDevice
: FBS bitmap used as graphics device
CGraphicsContext
: Graphics context for drawing