#ifndef RPPRTSTD_H #define RPPRTSTD_H /*===========================================================================* *--- Include files ---------------------------------------------------------* *===========================================================================*/ #include "rwcore.h" #include "rpworld.h" /*---- start: ./prtstd.h----*/ #include "rwcore.h" #include "rpworld.h" #include "rpptank.h" #include "rpprtstd.rpe" /************************************************************************ * * * ************************************************************************/ /** * \defgroup rpprtstd RpPrtStd * \ingroup rpplugin * * Particle Animation Plugin for RenderWare Graphics. */ /* * Current version stamp */ #define rpPRTSTDVERSIONSTAMP 2 /* * Random Number Generation Macros */ #define PRTSTD_SRAND_MAX 0xFFFFFFFF #define PRTSTD_SRAND_IMAX ((RwReal) 1.0 / (RwReal) PRTSTD_SRAND_MAX) #define PRTSTD_SRAND(_seed) ((_seed) = ((_seed) * 196314165 + 907633515)) /* Real rand -1.0 .. + 1.0 */ #define PRTSTD_RSRAND(_seed) (((RwReal)((RwUInt32) (_seed) * PRTSTD_SRAND_IMAX) * \ (RwReal) 2.0) - (RwReal) 1.0) #define PRTSTD_RSRAND2(_seed) (((RwReal)((RwReal) (_seed) * PRTSTD_SRAND_IMAX) * \ (RwReal)1.0)) /** * \ingroup rpprtstd * \ref RpPrtStdParticleFlags, this type represents the different properties of * a particle. */ enum RpPrtStdParticleFlags { rpPRTSTDPARTICLEFLAGEMITTER = 0x00000001, /**