aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicksprite.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2012-01-18 12:27:30 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-27 06:17:57 +0100
commitcc3716f899fb683e1e8270ba5127f9899264072b (patch)
treef8a48cc40594a4226a59d8a7cd6d504e74aaeab2 /src/quick/items/qquicksprite.cpp
parent7c9f6b7b8f2a1959ded34215d09e5a2e3dbaf0b7 (diff)
Extend QQuickSprite docs
Including links to sprite sheet generators to help designers produce this common format. Change-Id: I980ae8090804bcc3de5513360dde8e65f9ec2ef8 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'src/quick/items/qquicksprite.cpp')
-rw-r--r--src/quick/items/qquicksprite.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/quick/items/qquicksprite.cpp b/src/quick/items/qquicksprite.cpp
index ac5fe5d678..632ee7f8c9 100644
--- a/src/quick/items/qquicksprite.cpp
+++ b/src/quick/items/qquicksprite.cpp
@@ -49,6 +49,20 @@ QT_BEGIN_NAMESPACE
\inqmlmodule QtQuick 2
\brief The Sprite element represents a sprite animation
+ QQuickSprite renders sprites of one or more frames and animates them. The sprites
+ can be in the middle of an image file, or split along multiple rows, as long as they form
+ a contiguous line wrapping to the next row of the file from the left edge of the file.
+
+ Sprites within one animation must be the same size, however sprites within the same file
+ do not. Sprites without a frameCount specified assume that they take the entire file.
+
+ There are several software tools to help turn images into sprite sheets, here are some examples:
+ Photoshop plugin:
+ http://www.personal.psu.edu/zez1/blogs/my_blog/2011/05/scripts-4-photoshop-file-sequence-to-layers-to-sprite-sheet.html
+ Gimp plugin:
+ http://registry.gimp.org/node/20943
+ Cmd-line tool:
+ http://www.imagemagick.org/script/montage.php
*/
/*!
\qmlproperty int QtQuick2::Sprite::duration