orx
1.14
Portable Game Engine
|
Data Structures | |
struct | orxFX_EVENT_PAYLOAD |
Macros | |
#define | orxFX_SLOT_KU32_FLAG_ABSOLUTE 0x00000100 |
#define | orxFX_SLOT_KU32_FLAG_USE_ROTATION 0x00000200 |
#define | orxFX_SLOT_KU32_FLAG_USE_SCALE 0x00000400 |
Typedefs | |
typedef struct __orxFX_t | orxFX |
Enumerations | |
enum | orxFX_CURVE { orxFX_CURVE_LINEAR = 0, orxFX_CURVE_SMOOTH, orxFX_CURVE_SMOOTHER, orxFX_CURVE_TRIANGLE, orxFX_CURVE_SINE, orxFX_CURVE_SQUARE, orxFX_CURVE_NUMBER, orxFX_CURVE_NONE = orxENUM_NONE } |
enum | orxFX_EVENT { orxFX_EVENT_START = 0, orxFX_EVENT_STOP, orxFX_EVENT_ADD, orxFX_EVENT_REMOVE, orxFX_EVENT_LOOP, orxFX_EVENT_NUMBER, orxFX_EVENT_NONE = orxENUM_NONE } |
Functions | |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddAlpha (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, orxFLOAT _fStartAlpha, orxFLOAT _fEndAlpha, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddHSL (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, orxVECTOR *_pvStartColor, orxVECTOR *_pvEndColor, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddHSV (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, orxVECTOR *_pvStartColor, orxVECTOR *_pvEndColor, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddPitch (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, orxFLOAT _fStartPitch, orxFLOAT _fEndPitch, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddPosition (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, const orxVECTOR *_pvStartTranslation, const orxVECTOR *_pvEndTranslation, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddRGB (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, orxVECTOR *_pvStartColor, orxVECTOR *_pvEndColor, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddRotation (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, orxFLOAT _fStartRotation, orxFLOAT _fEndRotation, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddScale (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, const orxVECTOR *_pvStartScale, const orxVECTOR *_pvEndScale, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddSlotFromConfig (orxFX *_pstFX, const orxSTRING _zSlotID) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddSpeed (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, const orxVECTOR *_pvStartSpeed, const orxVECTOR *_pvEndSpeed, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_AddVolume (orxFX *_pstFX, orxFLOAT _fStartTime, orxFLOAT _fEndTime, orxFLOAT _fCyclePeriod, orxFLOAT _fCyclePhase, orxFLOAT _fAmplification, orxFLOAT _fAcceleration, orxFLOAT _fStartVolume, orxFLOAT _fEndVolume, orxFX_CURVE _eCurve, orxFLOAT _fPow, orxU32 _u32Flags) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFX_Apply (const orxFX *_pstFX, orxOBJECT *_pstObject, orxFLOAT _fStartTime, orxFLOAT _fEndTime) |
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 orxFLOAT orxFASTCALL | orxFX_GetDuration (const orxFX *_pstFX) |
orxDLLAPI const orxSTRING orxFASTCALL | orxFX_GetName (const orxFX *_pstFX) |
orxDLLAPI orxBOOL orxFASTCALL | orxFX_GetStagger (const orxFX *_pstFX, orxFLOAT *_pfOffset) |
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 0x00000100 |
#define orxFX_SLOT_KU32_FLAG_USE_ROTATION 0x00000200 |
#define orxFX_SLOT_KU32_FLAG_USE_SCALE 0x00000400 |
enum orxFX_CURVE |
enum orxFX_EVENT |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddAlpha | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
orxFLOAT | _fStartAlpha, | ||
orxFLOAT | _fEndAlpha, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds alpha to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _fStartAlpha | Starting alpha value |
[in] | _fEndAlpha | Ending alpha value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddHSL | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
orxVECTOR * | _pvStartColor, | ||
orxVECTOR * | _pvEndColor, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds HSL color to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _pvStartColor | Starting color value |
[in] | _pvEndColor | Ending color value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddHSV | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
orxVECTOR * | _pvStartColor, | ||
orxVECTOR * | _pvEndColor, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds HSV color to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _pvStartColor | Starting color value |
[in] | _pvEndColor | Ending color value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddPitch | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
orxFLOAT | _fStartPitch, | ||
orxFLOAT | _fEndPitch, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds pitch to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _fStartPitch | Starting pitch value |
[in] | _fEndPitch | Ending pitch value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddPosition | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
const orxVECTOR * | _pvStartTranslation, | ||
const orxVECTOR * | _pvEndTranslation, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds position to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _pvStartTranslation | Starting position value |
[in] | _pvEndTranslation | Ending position value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddRGB | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
orxVECTOR * | _pvStartColor, | ||
orxVECTOR * | _pvEndColor, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds RGB color to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _pvStartColor | Starting color value |
[in] | _pvEndColor | Ending color value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddRotation | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
orxFLOAT | _fStartRotation, | ||
orxFLOAT | _fEndRotation, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds rotation to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _fStartRotation | Starting rotation value (radians) |
[in] | _fEndRotation | Ending rotation value (radians) |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddScale | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
const orxVECTOR * | _pvStartScale, | ||
const orxVECTOR * | _pvEndScale, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds scale to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _pvStartScale | Starting scale value |
[in] | _pvEndScale | Ending scale value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddSlotFromConfig | ( | orxFX * | _pstFX, |
const orxSTRING | _zSlotID | ||
) |
Adds a slot to an FX from config
[in] | _pstFX | Concerned FX |
[in] | _zSlotID | Config ID return orxSTATUS_SUCCESS / orxSTATUS_FAILURE |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddSpeed | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
const orxVECTOR * | _pvStartSpeed, | ||
const orxVECTOR * | _pvEndSpeed, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds speed to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _pvStartSpeed | Starting speed value |
[in] | _pvEndSpeed | Ending speed value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_AddVolume | ( | orxFX * | _pstFX, |
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime, | ||
orxFLOAT | _fCyclePeriod, | ||
orxFLOAT | _fCyclePhase, | ||
orxFLOAT | _fAmplification, | ||
orxFLOAT | _fAcceleration, | ||
orxFLOAT | _fStartVolume, | ||
orxFLOAT | _fEndVolume, | ||
orxFX_CURVE | _eCurve, | ||
orxFLOAT | _fPow, | ||
orxU32 | _u32Flags | ||
) |
Adds volume to an FX
[in] | _pstFX | Concerned FX |
[in] | _fStartTime | Time start |
[in] | _fEndTime | Time end |
[in] | _fCyclePeriod | Cycle period |
[in] | _fCyclePhase | Cycle phase (at start) |
[in] | _fAmplification | Curve linear amplification over time (1.0 for none) |
[in] | _fAcceleration | Curve linear acceleration over time (1.0 for none) |
[in] | _fStartVolume | Starting volume value |
[in] | _fEndVolume | Ending volume value |
[in] | _eCurve | Blending curve type |
[in] | _fPow | Blending curve exponent |
[in] | _u32Flags | Param flags |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_Apply | ( | const orxFX * | _pstFX, |
orxOBJECT * | _pstObject, | ||
orxFLOAT | _fStartTime, | ||
orxFLOAT | _fEndTime | ||
) |
Applies FX on object
[in] | _pstFX | FX to apply |
[in] | _pstObject | Object on which to apply the FX |
[in] | _fStartTime | FX local application start time |
[in] | _fEndTime | FX local application end 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 |
Gets FX duration
[in] | _pstFX | Concerned FX |
Gets FX name
[in] | _pstFX | Concerned FX |
Get FX stagger / offset
[in] | _pstFX | Concerned FX |
[out] | _pfOffset | If non null, will contain the initial offset |
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 |
orxDLLAPI orxSTATUS orxFASTCALL orxFX_SetStagger | ( | orxFX * | _pstFX, |
orxBOOL | _bStagger, | ||
orxFLOAT | _fOffset | ||
) |
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 |