SpriteFrames

Inherits: Resource < Reference < Object

Category: Core

Brief Description

Sprite frame library for AnimatedSprite.

Member Functions

void add_frame ( Object frame, int atpos=-1 )
void clear ( )
Object get_frame ( int idx ) const
int get_frame_count ( ) const
void remove_frame ( int idx )
void set_frame ( int idx, Object txt )

Description

Sprite frame library for AnimatedSprite.

Member Function Description

  • void add_frame ( Object frame, int atpos=-1 )

Add a frame (texture).

  • void clear ( )

Clear the frames.

Return a texture (frame).

  • int get_frame_count ( ) const

Return the amount of frames.

  • void remove_frame ( int idx )

Remove a frame