|
orx 1.16
Portable Game Engine
|
Data Structures | |
| struct | orxFX_CURVE_PARAM |
| struct | orxFX_EVENT_PAYLOAD |
Macros | |
| #define | orxFX_SLOT_KU32_FLAG_ABSOLUTE 0x00010000 |
| #define | orxFX_SLOT_KU32_FLAG_STAGGER 0x00020000 |
| #define | orxFX_SLOT_KU32_FLAG_USE_ROTATION 0x00040000 |
| #define | orxFX_SLOT_KU32_FLAG_USE_SCALE 0x00080000 |
Typedefs | |
| typedef struct __orxFX_t | orxFX |
Functions | |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddSlot (orxFX *_pstFX, orxFX_TYPE _eType, orxFX_CURVE _eCurve, const orxFX_CURVE_PARAM *_pstCurveParam, orxU32 _u32Flags) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddSlotFromConfig (orxFX *_pstFX, const orxSTRING _zSlotID) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFX_Apply (const orxFX *_pstFX, orxOBJECT *_pstObject, orxFLOAT _fPreviousTime, orxFLOAT _fTime) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFX_ClearCache () |
| orxDLLAPI orxFX *orxFASTCALL | orxFX_Create () |
| orxDLLAPI orxFX *orxFASTCALL | orxFX_CreateFromConfig (const orxSTRING _zConfigID) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFX_Delete (orxFX *_pstFX) |
| orxDLLAPI void orxFASTCALL | orxFX_Enable (orxFX *_pstFX, orxBOOL _bEnable) |
| orxDLLAPI void orxFASTCALL | orxFX_Exit () |
| orxDLLAPI orxFX *orxFASTCALL | orxFX_Get (const orxSTRING _zName) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxFX_GetDuration (const orxFX *_pstFX) |
| orxDLLAPI orxFLOAT orxFASTCALL | orxFX_GetFloat (const orxFX *_pstFX, orxFLOAT _fPreviousTime, orxFLOAT _fTime) |
| orxDLLAPI const orxSTRING orxFASTCALL | orxFX_GetName (const orxFX *_pstFX) |
| orxDLLAPI orxBOOL orxFASTCALL | orxFX_GetStagger (const orxFX *_pstFX, orxFLOAT *_pfOffset) |
| orxDLLAPI orxVECTOR *orxFASTCALL | orxFX_GetVector (const orxFX *_pstFX, orxFLOAT _fPreviousTime, orxFLOAT _fTime, orxVECTOR *_pvVector) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFX_Init () |
| orxDLLAPI orxBOOL orxFASTCALL | orxFX_IsEnabled (const orxFX *_pstFX) |
| orxDLLAPI orxBOOL orxFASTCALL | orxFX_IsLooping (const orxFX *_pstFX) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFX_Loop (orxFX *_pstFX, orxBOOL _bLoop) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFX_SetStagger (orxFX *_pstFX, orxBOOL _bStagger, orxFLOAT _fOffset) |
| orxDLLAPI void orxFASTCALL | orxFX_Setup () |
FX module Allows to creates rendering special effects affecting color, scale, rotation and position of visuals.
| #define orxFX_SLOT_KU32_FLAG_ABSOLUTE 0x00010000 |
| #define orxFX_SLOT_KU32_FLAG_USE_ROTATION 0x00040000 |
| #define orxFX_SLOT_KU32_FLAG_USE_SCALE 0x00080000 |
| enum orxFX_CURVE |
FX curve enum
| enum orxFX_EVENT |
| enum orxFX_TYPE |
FX type enum
|
extern |
Adds a slot to an FX
| [in] | _pstFX | Concerned FX |
| [in] | _eType | Type |
| [in] | _eCurve | Curve |
| [in] | _pstCurveParam | Curve parameters |
| [in] | _u32Flags | Additional flags (Absolute, Stagger, UseRotation/UseScale for position/speed types only) |
|
extern |
Adds a slot to an FX from config
| [in] | _pstFX | Concerned FX |
| [in] | _zSlotID | Config ID return orxSTATUS_SUCCESS / orxSTATUS_FAILURE |
|
extern |
Applies FX on object
| [in] | _pstFX | FX to apply |
| [in] | _pstObject | Object on which to apply the FX |
| [in] | _fPreviousTime | Previous time |
| [in] | _fTime | Current time |
Clears cache (if any FX is still in active use, it'll remain in memory until not referenced anymore)
Creates an FX from config
| [in] | _zConfigID | Config ID @ return orxFX / orxNULL |
Deletes an FX
| [in] | _pstFX | Concerned FX |
Enables/disables an FX
| [in] | _pstFX | Concerned FX |
| [in] | _bEnable | Enable / disable |
|
extern |
Exits from the FX module
Gets FX duration
| [in] | _pstFX | Concerned FX |
|
extern |
Gets FX user float value between two timestamps
| [in] | _pstFX | Concerned FX |
| [in] | _fPreviousTime | Previous time, ignored for Absolute slots. If <= orxFLOAT_0, the value at the current time will be returned, otherwise the value delta between both times will be returned |
| [in] | _fTime | Current time |
Gets FX name
| [in] | _pstFX | Concerned FX |
|
extern |
Get FX stagger / offset
| [in] | _pstFX | Concerned FX |
| [out] | _pfOffset | If non null, will contain the initial offset |
|
extern |
Gets FX user vector value between two timestamps
| [in] | _pstFX | Concerned FX |
| [in] | _fPreviousTime | Previous time, ignored for Absolute slots. If <= orxFLOAT_0, the value at the current time will be returned, otherwise the value delta between both times will be returned |
| [in] | _fTime | Current time |
| [out] | _pvVector | Storage for vector value |
Inits the FX module
Is FX enabled?
| [in] | _pstFX | Concerned FX |
Is FX looping
| [in] | _pstFX | Concerned FX |
Set FX loop property
| [in] | _pstFX | Concerned FX |
| [in] | _bLoop | Loop / don't loop |
|
extern |
Sets FX stagger / offset
| [in] | _pstFX | Concerned FX |
| [in] | _bStagger | If true, this FX will be added after all current FXs |
| [in] | _fOffset | Initial offset, in seconds. Cannot result in a negative start time |
|
extern |
FX module setup
1.8.11