Symbian Developer Library

SYMBIAN OS V6.1 EXAMPLE CODE

[Index] [Previous] [Next]



BitmapSprite: create a sprite by loading a bitmap file

Found in: epoc32ex\Graphics\WS\BitmapSprite\


Description

The BitmapSprite example creates an animated sprite by loading a bitmap (.mbm) file. The sprite is a rotating windmill which can be moved around the screen using the arrow keys.

As in the previous example, the sprite is created by setting up the sprite members to contain bitmaps, then appending them to the sprite. In this example, however, the bitmaps are loaded from a file rather than created using off-screen bitmaps drawn to using a graphics context.

[Top]


Classes defined

CSprite: Uses class RWsSprite by setting up the sprite members to contain bitmaps then appending them to the sprite. In this example, the bitmaps are loaded from a file.

[Top]


Classes used