|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-858ABC77-053B-5C45-A8EB-08C68506B193" xml:lang="en"><title>VectorSprite: |
|
13 drawing sprites</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <section><title>Description</title> <p>The <filepath>VectorSprite</filepath> example |
|
15 creates a simple animated sprite (a rotating line), and creates the sprite's |
|
16 bitmaps by creating and drawing to off-screen bitmaps within the application. |
|
17 No redraw events are caused by the sprite. </p> </section> |
|
18 <section id="GUID-59D720EE-05BF-5AEF-80EF-8F1F665D78E9"><title>Download</title> <p>Click |
|
19 on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-19e4f34c-a58c-4b3b-a92f-d061230fbd70.zip" scope="external">VectorSprite.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-19e4f34c-a58c-4b3b-a92f-d061230fbd70.html" scope="peer">browse</xref> to view the example code. </p> </section> |
|
20 <section><title>Class Defined</title><p><b>CSprite</b>: Demonstrates how to |
|
21 use class RWsSprite by setting up the sprite members to contain bitmaps then |
|
22 appending them to the sprite. The bitmaps are off screen bitmaps drawn to |
|
23 using a graphics context</p></section> |
|
24 <section><title>Class Summary</title> <ul> |
|
25 <li id="GUID-78B02278-0415-59A8-AA8E-BA44DF472A8E"><p> <codeph>RWsSpriteBase</codeph>: |
|
26 Abstract base class for sprites </p> </li> |
|
27 <li id="GUID-8C9C1FA3-DA4B-55FA-96BB-ADEB77BA7D2B"><p> <codeph>RWsSprite</codeph>: |
|
28 Sprite </p> </li> |
|
29 <li id="GUID-DAF674CE-42A9-5437-A067-025662E9C0AC"><p> <codeph>struct TSpriteMember</codeph>: |
|
30 Sprite member </p> </li> |
|
31 <li id="GUID-86ED2C6A-197B-505B-9DB8-C46C1977E544"><p> <codeph>CFbsBitmap</codeph>: |
|
32 Font-bitmap server bitmap </p> </li> |
|
33 <li id="GUID-7761BB55-458E-5423-9944-9FE77DB49DA3"><p> <codeph>CFbsBitmapDevice</codeph>: |
|
34 FBS bitmap used as graphics device </p> </li> |
|
35 <li id="GUID-42DF19E5-9D3E-5434-915B-B1C66BB9775F"><p> <codeph>CGraphicsContext</codeph>: |
|
36 Graphics context for drawing </p> </li> |
|
37 </ul> </section> |
|
38 </conbody></concept> |