VgaGames 3 - Animation man-pages

[.. upper level ..]

VG3_sprite_clone()

Clone an animated sprite (copy).
SYNTAX
struct vg3_sprite * VG3_sprite_clone(struct vg3_sprite *sprt)

FUNCTION PARAMETERS
sprt Sprite

RETURN VALUE
Returns a pointer to the cloned sprite (copy) or NULL on failure.

ERRORS
On error VG3_errmsg() returns: EINVAL - error in argument ENOSPC - too many audio files loaded ENOMEM - cannot get memory ENXIO - error loading audio file ENOEXEC - error decoding audio file

DESCRIPTION
Clone an animated sprite as a copy and return pointer to it. The cloned sprite will be rewinded.

SEE ALSO
VG3_sprite_new() VG3_sprite_load() VG3_sprite_free()