VectorSprite: drawing sprites

Description

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.

Download

Click on the following link to download the example: VectorSprite.zip

Click: browse to view the example code.

Class Defined

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

Class Summary