Adds an image to the sprite as a new animation frame.
|
Parameters |
Description |
|
const Image: TAgkImage |
the image to add. |
Frame indices start at 1 and increase incrementally. This image may be shared by multiple sprites either as single images or as animation frames, the image may also be a part of an atlas texture.
Alternatively if you have all your animation frames on a single image you can use the faster SetAnimation that avoids image changes during rendering by modifying the UV coordinates to change frame instead.
TAgkSprite
|
Copyright (c) 2012. All rights reserved.
|