Data Structures | |
| struct | orxANIM_CUSTOM_EVENT |
| struct | orxANIM_EVENT_PAYLOAD |
Defines | |
| #define | orxANIM_KU32_EVENT_MAX_NUMBER 65535 |
| #define | orxANIM_KU32_FLAG_2D 0x00000001 |
| #define | orxANIM_KU32_FLAG_NONE 0x00000000 |
| #define | orxANIM_KU32_KEY_MAX_NUMBER 65535 |
| #define | orxANIM_KU32_MASK_ALL 0xFFFFFFFF |
| #define | orxANIM_KU32_MASK_USER_ALL 0x0000000F |
Typedefs | |
| typedef struct __orxANIM_t | orxANIM |
Enumerations | |
| enum | orxANIM_EVENT { orxANIM_EVENT_START = 0, orxANIM_EVENT_STOP, orxANIM_EVENT_CUT, orxANIM_EVENT_LOOP, orxANIM_EVENT_CUSTOM_EVENT, orxANIM_EVENT_NUMBER, orxANIM_EVENT_NONE = orxENUM_NONE } |
Functions | |
| orxDLLAPI orxSTATUS orxFASTCALL | orxAnim_AddEvent (orxANIM *_pstAnim, const orxSTRING _zEventName, orxFLOAT _fTimeStamp, orxFLOAT _fValue) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxAnim_AddKey (orxANIM *_pstAnim, orxSTRUCTURE *_pstData, orxFLOAT _fTimeStamp) |
| orxDLLAPI orxANIM *orxFASTCALL | orxAnim_Create (orxU32 _u32Flags, orxU32 _u32KeyNumber, orxU32 _u32EventNumber) |
| orxDLLAPI orxANIM *orxFASTCALL | orxAnim_CreateFromConfig (const orxSTRING _zConfigID) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxAnim_Delete (orxANIM *_pstAnim) |
| orxDLLAPI void orxFASTCALL | orxAnim_Exit () |
| orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetEventCounter (const orxANIM *_pstAnim) |
| orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetEventStorageSize (const orxANIM *_pstAnim) |
| orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetID (const orxANIM *_pstAnim) |
| orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetKeyCounter (const orxANIM *_pstAnim) |
| orxDLLAPI orxSTRUCTURE *orxFASTCALL | orxAnim_GetKeyData (const orxANIM *_pstAnim, orxU32 _u32Index) |
| orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetKeyStorageSize (const orxANIM *_pstAnim) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxAnim_GetLength (const orxANIM *_pstAnim) |
| orxDLLAPI const orxSTRING orxFASTCALL | orxAnim_GetName (const orxANIM *_pstAnim) |
| orxDLLAPI const orxANIM_CUSTOM_EVENT *orxFASTCALL | orxAnim_GetNextEvent (const orxANIM *_pstAnim, orxFLOAT _fTimeStamp) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxAnim_Init () |
| orxDLLAPI void orxFASTCALL | orxAnim_RemoveAllEvents (orxANIM *_pstAnim) |
| orxDLLAPI void orxFASTCALL | orxAnim_RemoveAllKeys (orxANIM *_pstAnim) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxAnim_RemoveLastEvent (orxANIM *_pstAnim) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxAnim_RemoveLastKey (orxANIM *_pstAnim) |
| orxDLLAPI void orxFASTCALL | orxAnim_Setup () |
| orxDLLAPI orxSTATUS orxFASTCALL | orxAnim_Update (orxANIM *_pstAnim, orxFLOAT _fTimeStamp, orxU32 *_pu32CurrentKey) |
Animation (Data) Module. Allows to creates and handle Animations data. It consists of a structure containing data for a single animation and functions for handling and accessing them. Animations are structures. They thus can be referenced by Animation Sets (orxAnimSet) Module.
| #define orxANIM_KU32_EVENT_MAX_NUMBER 65535 |
| #define orxANIM_KU32_FLAG_2D 0x00000001 |
| #define orxANIM_KU32_FLAG_NONE 0x00000000 |
| #define orxANIM_KU32_KEY_MAX_NUMBER 65535 |
| #define orxANIM_KU32_MASK_USER_ALL 0x0000000F |
| enum orxANIM_EVENT |
Event enum
| orxDLLAPI orxSTATUS orxFASTCALL orxAnim_AddEvent | ( | orxANIM * | _pstAnim, |
| const orxSTRING | _zEventName, | ||
| orxFLOAT | _fTimeStamp, | ||
| orxFLOAT | _fValue | ||
| ) |
Adds an event to an animation
| [in] | _pstAnim | Concerned animation |
| [in] | _zEventName | Event name to add |
| [in] | _fTimeStamp | Timestamp for this event |
| [in] | _fValue | Value for this event |
| orxDLLAPI orxSTATUS orxFASTCALL orxAnim_AddKey | ( | orxANIM * | _pstAnim, |
| orxSTRUCTURE * | _pstData, | ||
| orxFLOAT | _fTimeStamp | ||
| ) |
Adds a key to an animation
| [in] | _pstAnim | Concerned animation |
| [in] | _pstData | Key data to add |
| [in] | _fTimeStamp | Timestamp for this key |
| orxDLLAPI orxANIM* orxFASTCALL orxAnim_Create | ( | orxU32 | _u32Flags, |
| orxU32 | _u32KeyNumber, | ||
| orxU32 | _u32EventNumber | ||
| ) |
Creates an empty animation
| [in] | _u32Flags | Flags for created animation |
| [in] | _u32KeyNumber | Number of keys for this animation |
| [in] | _u32EventNumber | Number of events for this animation |
| orxDLLAPI orxANIM* orxFASTCALL orxAnim_CreateFromConfig | ( | const orxSTRING | _zConfigID ) |
Creates an animation from config
| [in] | _zConfigID | Config ID |
Deletes an animation
| [in] | _pstAnim | Anim to delete |
| orxDLLAPI void orxFASTCALL orxAnim_Exit | ( | ) |
Exits from the Anim module
| orxDLLAPI orxU32 orxFASTCALL orxAnim_GetEventCounter | ( | const orxANIM * | _pstAnim ) |
Anim event counter accessor
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI orxU32 orxFASTCALL orxAnim_GetEventStorageSize | ( | const orxANIM * | _pstAnim ) |
Anim event storage size accessor
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI orxU32 orxFASTCALL orxAnim_GetID | ( | const orxANIM * | _pstAnim ) |
Anim ID get accessor
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI orxU32 orxFASTCALL orxAnim_GetKeyCounter | ( | const orxANIM * | _pstAnim ) |
Anim key counter accessor
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI orxSTRUCTURE* orxFASTCALL orxAnim_GetKeyData | ( | const orxANIM * | _pstAnim, |
| orxU32 | _u32Index | ||
| ) |
Anim key data accessor
| [in] | _pstAnim | Concerned animation |
| [in] | _u32Index | Index of desired key data |
| orxDLLAPI orxU32 orxFASTCALL orxAnim_GetKeyStorageSize | ( | const orxANIM * | _pstAnim ) |
Anim key storage size accessor
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI orxFLOAT orxFASTCALL orxAnim_GetLength | ( | const orxANIM * | _pstAnim ) |
Anim time length accessor
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI const orxSTRING orxFASTCALL orxAnim_GetName | ( | const orxANIM * | _pstAnim ) |
Anim name get accessor
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI const orxANIM_CUSTOM_EVENT* orxFASTCALL orxAnim_GetNextEvent | ( | const orxANIM * | _pstAnim, |
| orxFLOAT | _fTimeStamp | ||
| ) |
Gets next event after given timestamp
| [in] | _pstAnim | Concerned animation |
| [in] | _fTimeStamp | Time stamp, excluded |
| orxDLLAPI orxSTATUS orxFASTCALL orxAnim_Init | ( | ) |
Inits the Anim module
| orxDLLAPI void orxFASTCALL orxAnim_RemoveAllEvents | ( | orxANIM * | _pstAnim ) |
Removes all events from an animation
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI void orxFASTCALL orxAnim_RemoveAllKeys | ( | orxANIM * | _pstAnim ) |
Removes all keys from an animation
| [in] | _pstAnim | Concerned animation |
Removes last added event from an animation
| [in] | _pstAnim | Concerned animation |
Removes last added key from an animation
| [in] | _pstAnim | Concerned animation |
| orxDLLAPI void orxFASTCALL orxAnim_Setup | ( | ) |
Anim module setup
| orxDLLAPI orxSTATUS orxFASTCALL orxAnim_Update | ( | orxANIM * | _pstAnim, |
| orxFLOAT | _fTimeStamp, | ||
| orxU32 * | _pu32CurrentKey | ||
| ) |
Updates anim given a timestamp
| [in] | _pstAnim | Concerned animation |
| [in] | _fTimeStamp | TimeStamp for animation update |
| [out] | _pu32CurrentKey | Current key as a result of update |
1.5.6