cc_sprite_anim Struct Reference

Sprite animations. More...

#include <sprite.h>

Collaboration diagram for cc_sprite_anim:

Collaboration graph
[legend]

Data Fields

int current_frame
 The currently displayed frame (index) of this animation.
int delay
 The delay between switching frames in milliseconds.
int frame_count
 The number of frames in this animation.
cc_sprite_anim_frame_tframes
 The list of animation frames.
uint32 last_update
 The last time this animation was updated (milliseconds since start).
int loop_frame
 The index of the frame to go to after displaying the last frame of the animation.

Detailed Description

Sprite animations.

This class provides to the sprite code the ability to have animations. This struct consists primarily of a list of frames to display.

Since:
1.0.0

Field Documentation

The currently displayed frame (index) of this animation.

Since:
1.0.0

The delay between switching frames in milliseconds.

Since:
1.0.0

The number of frames in this animation.

Since:
1.0.0

The list of animation frames.

This array contains all of the frames that this animation contains in order.

Since:
1.0.0

The last time this animation was updated (milliseconds since start).

Since:
1.0.0

The index of the frame to go to after displaying the last frame of the animation.

Since:
1.0.0


The documentation for this struct was generated from the following file:
SourceForge.net Logo