orx
1.14
Portable Game Engine
|
Data Structures | |
struct | orxANIM_CUSTOM_EVENT |
struct | orxANIM_EVENT_PAYLOAD |
Macros | |
#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_UPDATE, 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 orxSTATUS orxFASTCALL | orxAnim_Delete (orxANIM *_pstAnim) |
orxDLLAPI void orxFASTCALL | orxAnim_Exit () |
orxDLLAPI const orxANIM_CUSTOM_EVENT *orxFASTCALL | orxAnim_GetEventAfter (const orxANIM *_pstAnim, orxFLOAT _fTimeStamp) |
orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetEventCount (const orxANIM *_pstAnim) |
orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetEventStorageSize (const orxANIM *_pstAnim) |
orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetKey (const orxANIM *_pstAnim, orxFLOAT _fTimeStamp) |
orxDLLAPI orxU32 orxFASTCALL | orxAnim_GetKeyCount (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, const orxANIM_CUSTOM_EVENT *_pstEvent) |
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 () |
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 |
Deletes an animation
[in] | _pstAnim | Anim to delete |
orxDLLAPI const orxANIM_CUSTOM_EVENT* orxFASTCALL orxAnim_GetEventAfter | ( | const orxANIM * | _pstAnim, |
orxFLOAT | _fTimeStamp | ||
) |
Gets event strictly after given timestamp
[in] | _pstAnim | Concerned animation |
[in] | _fTimeStamp | Time stamp, excluded |
Anim event count accessor
[in] | _pstAnim | Concerned animation |
Anim event storage size accessor
[in] | _pstAnim | Concerned animation |
Gets animation's key index from a time stamp
[in] | _pstAnim | Concerned animation |
[in] | _fTimeStamp | TimeStamp of the desired animation key |
Anim key count 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 |
Anim key storage size accessor
[in] | _pstAnim | Concerned animation |
Anim time length accessor
[in] | _pstAnim | Concerned animation |
Anim name get accessor
[in] | _pstAnim | Concerned animation |
orxDLLAPI const orxANIM_CUSTOM_EVENT* orxFASTCALL orxAnim_GetNextEvent | ( | const orxANIM * | _pstAnim, |
const orxANIM_CUSTOM_EVENT * | _pstEvent | ||
) |
Gets next event
[in] | _pstAnim | Concerned animation |
[in] | _pstEvent | Event, orxNULL for first |
Removes all events from an animation
[in] | _pstAnim | Concerned animation |
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 |