Struct rcocos2d_sys::cocos2d_CCAnimation[][src]

#[repr(C)]
pub struct cocos2d_CCAnimation { pub _base: cocos2d_CCObject, pub m_fTotalDelayUnits: f32, pub m_fDelayPerUnit: f32, pub m_fDuration: f32, pub m_pFrames: *mut cocos2d_CCArray, pub m_bRestoreOriginalFrame: bool, pub m_uLoops: c_uint, }
Expand description

A CCAnimation object is used to perform animations on the CCSprite objects.

The CCAnimation object contains CCAnimationFrame objects, and a possible delay between the frames. You can animate a CCAnimation object by using the CCAnimate action. Example:

[sprite runAction:[CCAnimate actionWithAnimation:animation]];

Fields

_base: cocos2d_CCObjectm_fTotalDelayUnits: f32m_fDelayPerUnit: f32m_fDuration: f32m_pFrames: *mut cocos2d_CCArraym_bRestoreOriginalFrame: boolm_uLoops: c_uint

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.