1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- //
- // ParticleSystemCommon.h
- // cocos2d_libs
- //
- // Created by 徐俊杰 on 2020/4/24.
- //
- #ifndef ParticleSystemCommon_h
- #define ParticleSystemCommon_h
- //#include "cocos2d.h"
- #include "rparticle/Macros/RParticleMacros.h"
- NS_RRP_BEGIN
- enum ParticleSystemScalingMode
- {
- kParticleSystemScalingModeHierarchy,
- kParticleSystemScalingModeLocal,
- kParticleSystemScalingModeShape,
- };
- enum ParticleSystemSubType
- {
- kParticleSystemSubTypeBirth,
- kParticleSystemSubTypeCollision,
- kParticleSystemSubTypeDeath,
- };
- enum ParticleSystemEmitMode
- {
- kParticleSystemEMDirect,
- kParticleSystemEMStaging,
- };
- enum
- {
- kParticleSystemMaxSubBirth = 2,
- kParticleSystemMaxSubCollision = 2,
- kParticleSystemMaxSubDeath = 2,
- kParticleSystemMaxSubTotal = kParticleSystemMaxSubBirth + kParticleSystemMaxSubCollision + kParticleSystemMaxSubDeath,
- };
- // Curve id's needed to offset randomness for curves, to avoid visible patterns due to only storing 1 random value per particle
- enum ParticleSystemRandomnessIds
- {
- // Curves
- kParticleSystemClampVelocityCurveId = 0x13371337,
- kParticleSystemForceCurveId = 0x12460f3b,
- kParticleSystemRotationCurveId = 0x6aed452e,
- kParticleSystemRotationBySpeedCurveId = 0xdec4aea1,
- kParticleSystemStartSpeedCurveId = 0x96aa4de3,
- kParticleSystemSizeCurveId = 0x8d2c8431,
- kParticleSystemSizeBySpeedCurveId = 0xf3857f6f,
- kParticleSystemVelocityCurveId = 0xe0fbd834,
- kParticleSystemUVCurveId = 0x13740583,
- kParticleSystemDragCurveId = 0x53271233,
-
- // Gradient
- kParticleSystemColorGradientId = 0x591bc05c,
- kParticleSystemColorByVelocityGradientId = 0x40eb95e4,
-
- // Misc
- kParticleSystemMeshSelectionId = 0xbc524e5f,
- kParticleSystemUVRowSelectionId = 0xaf502044,
- };
- enum ParticleSystemRenderMode {
- kSRMBillboard = 0,
- kSRMStretch3D = 1,
- kSRMBillboardFixedHorizontal = 2,
- kSRMBillboardFixedVertical = 3,
- kSRMMesh = 4,
- };
- enum ParticleSystemSortMode
- {
- kSSMNone,
- kSSMByDistance,
- kSSMYoungestFirst,
- kSSMOldestFirst,
- };
- NS_RRP_END
- #endif /* ParticleSystemCommon_h */
|