Lines Matching refs:index
108 u32 index = x * 360 + 360;
109 if (index < sizeof(acosTable))
111 return acosTable[index];
1017 int index = *pActiveIndex; in InitializeParticles() local
1020 storagePtr[index] = value; in InitializeParticles()
1040 int index = *pActiveIndex; in InitializeParticles() local
1043 storagePtr[index] = value; in InitializeParticles()
1065 int index = *pActiveIndex; in InitializeParticles() local
1068 storagePtr[index] = value; in InitializeParticles()
1090 int index = *pActiveIndex; in InitializeParticles() local
1100 storagePtr[index] = value; in InitializeParticles()
1125 int index = *pActiveIndex; in InitializeParticles() local
1128 storagePtr[index] += velocity; in InitializeParticles()
1226 int index = *pActiveIndex; in InitializeParticles() local
1229 storagePtr[index] += velocity; in InitializeParticles()
1253 int index = *pActiveIndex; in InitializeParticles() local
1256 nw::math::VEC3 velocity = trans[index]; in InitializeParticles()
1260 storagePtr[index] += velocity; in InitializeParticles()
1281 int index = *pActiveIndex; in InitializeParticles() local
1309 storagePtr[index] += velocity; in InitializeParticles()
1332 int index = *pActiveIndex; in InitializeParticles() local
1335 nw::math::VEC3 velocity(trans[index].x, 0.0f, trans[index].z); in InitializeParticles()
1339 storagePtr[index] += velocity; in InitializeParticles()
1361 int index = *pActiveIndex; in InitializeParticles() local
1376 storagePtr[index] = value; in InitializeParticles()
1398 int index = *pActiveIndex; in InitializeParticles() local
1424 storagePtr[index] = value; in InitializeParticles()
1445 int index = *pActiveIndex; in InitializeParticles() local
1451 storagePtr[index].x *= floatRandom; in InitializeParticles()
1452 storagePtr[index].y *= floatRandom; in InitializeParticles()
1453 storagePtr[index].z *= floatRandom; in InitializeParticles()
1492 int index = *pActiveIndex; in InitializeParticles() local
1497 storagePtr[index] = value; in InitializeParticles()
1499 limit[index] = -(time + value); in InitializeParticles()
1560 int index = (int)ptclTime; in CalcAnimationDataIndex() local
1561 *interpFactor = ptclTime - index; in CalcAnimationDataIndex()
1563 int index = ptclTime.GetIntegralParts(); in CalcAnimationDataIndex() local
1576 return index; in CalcAnimationDataIndex()
1599 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleAccelarationUpdater() local
1601 storagePtr[index] *= factor; in ParticleAccelarationUpdater()
1650 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediateUpdater() local
1652 storagePtr[index] = baseValue; in ParticleFloatImmediateUpdater()
1658 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediateUpdater() local
1668 index, in ParticleFloatImmediateUpdater()
1669 birth[index], in ParticleFloatImmediateUpdater()
1670 (life == NULL) ? lifeParam : life[index], in ParticleFloatImmediateUpdater()
1686 storagePtr[index] = value; in ParticleFloatImmediateUpdater()
1725 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediate4KeyUpdater() local
1727 ParticleTime difftime = time - birth[index]; in ParticleFloatImmediate4KeyUpdater()
1758 storagePtr[index] = (f32)value / 65535.f; in ParticleFloatImmediate4KeyUpdater()
1764 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediate4KeyUpdater() local
1766 ParticleTime difftime = time - birth[index]; in ParticleFloatImmediate4KeyUpdater()
1767 ParticleTime ftime = (ParticleTime)(difftime / life[index]); in ParticleFloatImmediate4KeyUpdater()
1779 value = value2 * difftime / life[index] + value0; in ParticleFloatImmediate4KeyUpdater()
1797 storagePtr[index] = (f32)value / 65535.f; in ParticleFloatImmediate4KeyUpdater()
1836 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3Immediate4KeyUpdater() local
1838 ParticleTime difftime = time - birth[index]; in ParticleVector3Immediate4KeyUpdater()
1869 storagePtr[index] = value; in ParticleVector3Immediate4KeyUpdater()
1875 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3Immediate4KeyUpdater() local
1877 ParticleTime difftime = time - birth[index]; in ParticleVector3Immediate4KeyUpdater()
1878 ParticleTime ftime = (ParticleTime)(difftime / life[index]); in ParticleVector3Immediate4KeyUpdater()
1891 value = value2 * difftime / life[index] + value0; in ParticleVector3Immediate4KeyUpdater()
1909 storagePtr[index] = value; in ParticleVector3Immediate4KeyUpdater()
1972 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleSpinUpdater() local
1974 nw::math::VEC3TransformNormal(&value, matrix, storagePtr[index]); in ParticleSpinUpdater()
1977 storagePtr[index].x = value.x; in ParticleSpinUpdater()
1978 storagePtr[index].y = value.y; in ParticleSpinUpdater()
1979 storagePtr[index].z = value.z; in ParticleSpinUpdater()
2025 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRandomUpdater() local
2027 storagePtr[index].x += power.x * random.NextFloatSignedOne(); in ParticleRandomUpdater()
2028 storagePtr[index].y += power.y * random.NextFloatSignedOne(); in ParticleRandomUpdater()
2029 storagePtr[index].z += power.z * random.NextFloatSignedOne(); in ParticleRandomUpdater()
2039 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRandomUpdater() local
2044 math::FFloor((time - birth[index]) / interval) in ParticleRandomUpdater()
2045 - math::FCeil((prevTime - birth[index]) / interval) in ParticleRandomUpdater()
2048 ParticleTime time_birth = time - birth[index]; in ParticleRandomUpdater()
2049 ParticleTime prev_birth = prevTime - birth[index]; in ParticleRandomUpdater()
2058 storagePtr[index].x += power.x * random.NextFloatSignedOne() * processCount; in ParticleRandomUpdater()
2059 storagePtr[index].y += power.y * random.NextFloatSignedOne() * processCount; in ParticleRandomUpdater()
2060 storagePtr[index].z += power.z * random.NextFloatSignedOne() * processCount; in ParticleRandomUpdater()
2110 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector2ImmediateUpdater() local
2124 index, in ParticleVector2ImmediateUpdater()
2125 birth[index], in ParticleVector2ImmediateUpdater()
2126 (life == NULL) ? lifeParam : life[index], in ParticleVector2ImmediateUpdater()
2160 storagePtr[index] = value; in ParticleVector2ImmediateUpdater()
2206 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3AdditiveUpdater() local
2225 index, in ParticleVector3AdditiveUpdater()
2226 birth[index], in ParticleVector3AdditiveUpdater()
2227 (life == NULL) ? lifeParam : life[index], in ParticleVector3AdditiveUpdater()
2272 storagePtr[index].x += value.x * diffTime; in ParticleVector3AdditiveUpdater()
2273 storagePtr[index].y += value.y * diffTime; in ParticleVector3AdditiveUpdater()
2274 storagePtr[index].z += value.z * diffTime; in ParticleVector3AdditiveUpdater()
2318 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3ImmediateUpdater() local
2333 index, in ParticleVector3ImmediateUpdater()
2334 birth[index], in ParticleVector3ImmediateUpdater()
2335 (life == NULL) ? lifeParam : life[index], in ParticleVector3ImmediateUpdater()
2380 storagePtr[index] = value; in ParticleVector3ImmediateUpdater()
2424 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3RandomAdditiveUpdater() local
2439 index, in ParticleVector3RandomAdditiveUpdater()
2440 birth[index], in ParticleVector3RandomAdditiveUpdater()
2441 (life == NULL) ? lifeParam : life[index], in ParticleVector3RandomAdditiveUpdater()
2486 storagePtr[index] = value * diffTime; in ParticleVector3RandomAdditiveUpdater()
2515 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRotateUpVectorUpdater() local
2517 nw::math::VEC3 ySrcAxis = srcStoragePtr[index]; in ParticleRotateUpVectorUpdater()
2523 storagePtr[index].x = nw::math::AcosRad(ySrcAxis.y); in ParticleRotateUpVectorUpdater()
2527 storagePtr[index].y = ::std::atan2f(ySrcAxis.x, ySrcAxis.z); in ParticleRotateUpVectorUpdater()
2529 storagePtr[index].z = 0; in ParticleRotateUpVectorUpdater()
2542 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRotateUpVectorUpdater() local
2544 nw::math::VEC3 ySrcAxis = srcStoragePtr[index]; in ParticleRotateUpVectorUpdater()
2545 ySrcAxis -= optionStoragePtr[index]; in ParticleRotateUpVectorUpdater()
2551 storagePtr[index].x = nw::math::AcosRad(ySrcAxis.y); in ParticleRotateUpVectorUpdater()
2555 storagePtr[index].y = ::std::atan2f(ySrcAxis.x, ySrcAxis.z); in ParticleRotateUpVectorUpdater()
2557 storagePtr[index].z = 0; in ParticleRotateUpVectorUpdater()
2614 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleTexturePatternUpdater() local
2623 index, in ParticleTexturePatternUpdater()
2624 birth[index], in ParticleTexturePatternUpdater()
2625 (life == NULL) ? lifeParam : life[index], in ParticleTexturePatternUpdater()
2669 storagePtr[index].x = -0.5f + (halfDivisionX) - (value % divisionX); in ParticleTexturePatternUpdater()
2670 storagePtr[index].y = 0.5f - (halfDivisionY) + (divisionY - (value / divisionX) - 1); in ParticleTexturePatternUpdater()
2765 int index = *pActiveIndex; in ParticleChildUpdater() local
2769 birth[index], in ParticleChildUpdater()
2770 (life == NULL) ? lifeParam : life[index], in ParticleChildUpdater()
2772 limit[index], in ParticleChildUpdater()
2786 parentsHead[newParticleCount + k] = index; in ParticleChildUpdater()
2892 nw::math::MTX34Translate(&particleMatrix, translate[index]); in ParticleChildUpdater()
2914 targetTranslate[dstIndex] += translate[index]; in ParticleChildUpdater()
2920 targetVelocity[dstIndex] += parentVelocity[index]; in ParticleChildUpdater()
2934 targetTranslate[dstIndex] += translate[index]; in ParticleChildUpdater()
2938 targetVelocity[dstIndex] += parentVelocity[index]; in ParticleChildUpdater()
3096 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in UpdateParticles() local
3098 storagePtr[index] = defaultValue; in UpdateParticles()
3123 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in UpdateParticles() local
3125 storagePtr[index] = defaultValue * diffTime; in UpdateParticles()
3243 int index = *pActiveIndex; in UpdateParticles() local
3245 NW_ASSERT(index != 0xffff); in UpdateParticles()
3247 if ((work[index] & 0x80000000) == 0) in UpdateParticles()
3249 *pDestroyIndex++ = index; in UpdateParticles()
3254 if (minActiveIndex > index) in UpdateParticles()
3256 minActiveIndex = index; in UpdateParticles()
3259 if (maxActiveIndex < index) in UpdateParticles()
3261 maxActiveIndex = index; in UpdateParticles()
3264 *pAliveIndex = index; // 別バッファにコピーしつつ整列していく in UpdateParticles()
3299 int index = *pActiveIndex; in UpdateParticles()
3301 NW_ASSERT(index != 0xffff); in UpdateParticles()
3303 …if (birth[index].GetParticleTimeValue() + life[index].GetParticleTimeValue() <= time.GetParticleTi… in UpdateParticles()
3305 *pDestroyIndex++ = index; in UpdateParticles()
3309 if (minActiveIndex > index) in UpdateParticles()
3311 minActiveIndex = index; in UpdateParticles()
3314 if (maxActiveIndex < index) in UpdateParticles()
3316 maxActiveIndex = index; in UpdateParticles()
3319 *pAliveIndex = index; // 別バッファにコピーしつつ整列していく in UpdateParticles()
3334 int index = *pActiveIndex; in UpdateParticles()
3336 NW_ASSERT(index != 0xffff); in UpdateParticles()
3338 if (birth[index].GetParticleTimeValue() <= limit.GetParticleTimeValue()) in UpdateParticles()
3340 *pDestroyIndex++ = index; in UpdateParticles()
3344 if (minActiveIndex > index) in UpdateParticles()
3346 minActiveIndex = index; in UpdateParticles()
3349 if (maxActiveIndex < index) in UpdateParticles()
3351 maxActiveIndex = index; in UpdateParticles()
3354 *pAliveIndex = index; // 別バッファにコピーしつつ整列していく in UpdateParticles()