-----------------------------------------------------------------------------
| 53 | } |
| 54 | //----------------------------------------------------------------------------- |
| 55 | CParticleSystem::CParticleSystem() |
| 56 | { |
| 57 | int i; |
| 58 | |
| 59 | for (i = 0; i < 20; i++) |
| 60 | { |
| 61 | tex_tab[i] = NULL; |
| 62 | } |
| 63 | |
| 64 | lLightId = -1; |
| 65 | |
| 66 | iParticleNbMax = 50; |
| 67 | |
| 68 | ulTime = 0; |
| 69 | ulNbParticleGen = 10; |
| 70 | iParticleNbAlive = 0; |
| 71 | iNbTex = 0; |
| 72 | iTexTime = 500; |
| 73 | fParticleRotation = 0; |
| 74 | |
| 75 | fParticleFreq = -1; |
| 76 | iSrcBlend = D3DBLEND_ONE; |
| 77 | iDstBlend = D3DBLEND_ONE; |
| 78 | ulParticleSpawn = 0; |
| 79 | |
| 80 | // default settings for EDITOR MODE only |
| 81 | p3ParticleDirection.x = 0; |
| 82 | p3ParticleDirection.y = -1; |
| 83 | p3ParticleDirection.z = 0; |
| 84 | EERIE_3D eVect; |
| 85 | eVect.x = p3ParticleDirection.x; |
| 86 | eVect.y = -p3ParticleDirection.y; |
| 87 | eVect.z = p3ParticleDirection.z; |
| 88 | GenerateMatrixUsingVector(&eMat, &eVect, 0); |
| 89 | |
| 90 | fParticleStartSize = 1; |
| 91 | fParticleEndSize = 1; |
| 92 | fParticleStartColor[0] = 0.1f; |
| 93 | fParticleStartColor[1] = 0.1f; |
| 94 | fParticleStartColor[2] = 0.1f; |
| 95 | fParticleStartColor[3] = 0.1f; |
| 96 | fParticleEndColor[0] = 0.1f; |
| 97 | fParticleEndColor[1] = 0.1f; |
| 98 | fParticleEndColor[2] = 0.1f; |
| 99 | fParticleEndColor[3] = 0.1f; |
| 100 | fParticleSpeed = 10; |
| 101 | fParticleLife = 1000; |
| 102 | |
| 103 | p3ParticlePos.x = 0; |
| 104 | p3ParticlePos.y = 0; |
| 105 | p3ParticlePos.z = 0; |
| 106 | |
| 107 | bParticleFollow = true; |
| 108 | |
| 109 | fParticleFlash = 0; |
| 110 | fParticleRotation = 0; |
| 111 | bParticleRotationRandomDirection = false; |
| 112 | bParticleRotationRandomStart = false; |
nothing calls this directly
no test coverage detected