Lines Matching refs:index
110 u32 index = x * 360 + 360;
111 if (index < sizeof(acosTable))
113 return acosTable[index];
1031 int index = *pActiveIndex; in InitializeParticles() local
1034 storagePtr[index] = value; in InitializeParticles()
1054 int index = *pActiveIndex; in InitializeParticles() local
1057 storagePtr[index] = value; in InitializeParticles()
1079 int index = *pActiveIndex; in InitializeParticles() local
1082 storagePtr[index] = value; in InitializeParticles()
1104 int index = *pActiveIndex; in InitializeParticles() local
1114 storagePtr[index] = value; in InitializeParticles()
1139 int index = *pActiveIndex; in InitializeParticles() local
1142 storagePtr[index] += velocity; in InitializeParticles()
1240 int index = *pActiveIndex; in InitializeParticles() local
1243 storagePtr[index] += velocity; in InitializeParticles()
1267 int index = *pActiveIndex; in InitializeParticles() local
1270 nw::math::VEC3 velocity = trans[index]; in InitializeParticles()
1274 storagePtr[index] += velocity; in InitializeParticles()
1295 int index = *pActiveIndex; in InitializeParticles() local
1323 storagePtr[index] += velocity; in InitializeParticles()
1346 int index = *pActiveIndex; in InitializeParticles() local
1349 nw::math::VEC3 velocity(trans[index].x, 0.0f, trans[index].z); in InitializeParticles()
1353 storagePtr[index] += velocity; in InitializeParticles()
1375 int index = *pActiveIndex; in InitializeParticles() local
1390 storagePtr[index] = value; in InitializeParticles()
1412 int index = *pActiveIndex; in InitializeParticles() local
1438 storagePtr[index] = value; in InitializeParticles()
1459 int index = *pActiveIndex; in InitializeParticles() local
1465 storagePtr[index].x *= floatRandom; in InitializeParticles()
1466 storagePtr[index].y *= floatRandom; in InitializeParticles()
1467 storagePtr[index].z *= floatRandom; in InitializeParticles()
1506 int index = *pActiveIndex; in InitializeParticles() local
1511 storagePtr[index] = value; in InitializeParticles()
1513 limit[index] = -(time + value); in InitializeParticles()
1514 NW_WARNING(limit[index] > -16777216, "limit[index] is overflow"); in InitializeParticles()
1575 int index = (int)ptclTime; in CalcAnimationDataIndex() local
1576 *interpFactor = ptclTime - index; in CalcAnimationDataIndex()
1578 int index = ptclTime.GetIntegralParts(); in CalcAnimationDataIndex() local
1591 return index; in CalcAnimationDataIndex()
1614 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleAccelarationUpdater() local
1616 storagePtr[index] *= factor; in ParticleAccelarationUpdater()
1665 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediateUpdater() local
1667 storagePtr[index] = baseValue; in ParticleFloatImmediateUpdater()
1673 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediateUpdater() local
1683 index, in ParticleFloatImmediateUpdater()
1684 birth[index], in ParticleFloatImmediateUpdater()
1685 (life == NULL) ? lifeParam : life[index], in ParticleFloatImmediateUpdater()
1701 storagePtr[index] = value; in ParticleFloatImmediateUpdater()
1740 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediate4KeyUpdater() local
1742 ParticleTime difftime = time - birth[index]; in ParticleFloatImmediate4KeyUpdater()
1773 storagePtr[index] = (f32)value / 65535.f; in ParticleFloatImmediate4KeyUpdater()
1779 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediate4KeyUpdater() local
1781 ParticleTime difftime = time - birth[index]; in ParticleFloatImmediate4KeyUpdater()
1782 ParticleTime ftime = (ParticleTime)(difftime / life[index]); in ParticleFloatImmediate4KeyUpdater()
1794 value = value2 * difftime / life[index] + value0; in ParticleFloatImmediate4KeyUpdater()
1812 storagePtr[index] = (f32)value / 65535.f; in ParticleFloatImmediate4KeyUpdater()
1851 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3Immediate4KeyUpdater() local
1853 ParticleTime difftime = time - birth[index]; in ParticleVector3Immediate4KeyUpdater()
1884 storagePtr[index] = value; in ParticleVector3Immediate4KeyUpdater()
1890 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3Immediate4KeyUpdater() local
1892 ParticleTime difftime = time - birth[index]; in ParticleVector3Immediate4KeyUpdater()
1893 ParticleTime ftime = (ParticleTime)(difftime / life[index]); in ParticleVector3Immediate4KeyUpdater()
1906 value = value2 * difftime / life[index] + value0; in ParticleVector3Immediate4KeyUpdater()
1924 storagePtr[index] = value; in ParticleVector3Immediate4KeyUpdater()
1987 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleSpinUpdater() local
1989 nw::math::VEC3TransformNormal(&value, matrix, storagePtr[index]); in ParticleSpinUpdater()
1992 storagePtr[index].x = value.x; in ParticleSpinUpdater()
1993 storagePtr[index].y = value.y; in ParticleSpinUpdater()
1994 storagePtr[index].z = value.z; in ParticleSpinUpdater()
2040 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRandomUpdater() local
2042 storagePtr[index].x += power.x * random.NextFloatSignedOne(); in ParticleRandomUpdater()
2043 storagePtr[index].y += power.y * random.NextFloatSignedOne(); in ParticleRandomUpdater()
2044 storagePtr[index].z += power.z * random.NextFloatSignedOne(); in ParticleRandomUpdater()
2054 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRandomUpdater() local
2059 math::FFloor((time - birth[index]) / interval) in ParticleRandomUpdater()
2060 - math::FCeil((prevTime - birth[index]) / interval) in ParticleRandomUpdater()
2063 ParticleTime time_birth = time - birth[index]; in ParticleRandomUpdater()
2064 ParticleTime prev_birth = prevTime - birth[index]; in ParticleRandomUpdater()
2073 storagePtr[index].x += power.x * random.NextFloatSignedOne() * processCount; in ParticleRandomUpdater()
2074 storagePtr[index].y += power.y * random.NextFloatSignedOne() * processCount; in ParticleRandomUpdater()
2075 storagePtr[index].z += power.z * random.NextFloatSignedOne() * processCount; in ParticleRandomUpdater()
2125 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector2ImmediateUpdater() local
2139 index, in ParticleVector2ImmediateUpdater()
2140 birth[index], in ParticleVector2ImmediateUpdater()
2141 (life == NULL) ? lifeParam : life[index], in ParticleVector2ImmediateUpdater()
2175 storagePtr[index] = value; in ParticleVector2ImmediateUpdater()
2221 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3AdditiveUpdater() local
2240 index, in ParticleVector3AdditiveUpdater()
2241 birth[index], in ParticleVector3AdditiveUpdater()
2242 (life == NULL) ? lifeParam : life[index], in ParticleVector3AdditiveUpdater()
2287 storagePtr[index].x += value.x * diffTime; in ParticleVector3AdditiveUpdater()
2288 storagePtr[index].y += value.y * diffTime; in ParticleVector3AdditiveUpdater()
2289 storagePtr[index].z += value.z * diffTime; in ParticleVector3AdditiveUpdater()
2333 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3ImmediateUpdater() local
2348 index, in ParticleVector3ImmediateUpdater()
2349 birth[index], in ParticleVector3ImmediateUpdater()
2350 (life == NULL) ? lifeParam : life[index], in ParticleVector3ImmediateUpdater()
2395 storagePtr[index] = value; in ParticleVector3ImmediateUpdater()
2439 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3RandomAdditiveUpdater() local
2454 index, in ParticleVector3RandomAdditiveUpdater()
2455 birth[index], in ParticleVector3RandomAdditiveUpdater()
2456 (life == NULL) ? lifeParam : life[index], in ParticleVector3RandomAdditiveUpdater()
2501 storagePtr[index] = value * diffTime; in ParticleVector3RandomAdditiveUpdater()
2531 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRotateUpVectorUpdater() local
2533 nw::math::VEC3 ySrcAxis = srcStoragePtr[index]; in ParticleRotateUpVectorUpdater()
2539 storagePtr[index].x = nw::math::AcosRad(ySrcAxis.y); in ParticleRotateUpVectorUpdater()
2543 storagePtr[index].y = ::std::atan2f(ySrcAxis.x, ySrcAxis.z); in ParticleRotateUpVectorUpdater()
2545 storagePtr[index].z = 0; in ParticleRotateUpVectorUpdater()
2567 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRotateUpVectorUpdater() local
2569 nw::math::VEC3 ySrcAxis = srcStoragePtr[index]; in ParticleRotateUpVectorUpdater()
2570 ySrcAxis -= optionStoragePtr[index]; in ParticleRotateUpVectorUpdater()
2576 storagePtr[index].x = nw::math::AcosRad(ySrcAxis.y); in ParticleRotateUpVectorUpdater()
2580 storagePtr[index].y = ::std::atan2f(ySrcAxis.x, ySrcAxis.z); in ParticleRotateUpVectorUpdater()
2582 storagePtr[index].z = 0; in ParticleRotateUpVectorUpdater()
2639 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleTexturePatternUpdater() local
2648 index, in ParticleTexturePatternUpdater()
2649 birth[index], in ParticleTexturePatternUpdater()
2650 (life == NULL) ? lifeParam : life[index], in ParticleTexturePatternUpdater()
2694 storagePtr[index].x = -0.5f + (halfDivisionX) - (value % divisionX); in ParticleTexturePatternUpdater()
2695 storagePtr[index].y = 0.5f - (halfDivisionY) + (divisionY - (value / divisionX) - 1); in ParticleTexturePatternUpdater()
2790 int index = *pActiveIndex; in ParticleChildUpdater() local
2794 birth[index], in ParticleChildUpdater()
2795 (life == NULL) ? lifeParam : life[index], in ParticleChildUpdater()
2797 limit[index], in ParticleChildUpdater()
2811 parentsHead[newParticleCount + k] = index; in ParticleChildUpdater()
2917 nw::math::MTX34Translate(&particleMatrix, translate[index]); in ParticleChildUpdater()
2939 targetTranslate[dstIndex] += translate[index]; in ParticleChildUpdater()
2945 targetVelocity[dstIndex] += parentVelocity[index]; in ParticleChildUpdater()
2959 targetTranslate[dstIndex] += translate[index]; in ParticleChildUpdater()
2963 targetVelocity[dstIndex] += parentVelocity[index]; in ParticleChildUpdater()
3172 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in UpdateParticles() local
3174 storagePtr[index] = defaultValue; in UpdateParticles()
3199 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in UpdateParticles() local
3201 storagePtr[index] = defaultValue * diffTime; in UpdateParticles()
3340 int index = *pActiveIndex; in UpdateParticles() local
3342 NW_ASSERT(index != 0xffff); in UpdateParticles()
3344 if ((work[index] & 0x80000000) == 0) in UpdateParticles()
3346 *pDestroyIndex++ = index; in UpdateParticles()
3351 if (minActiveIndex > index) in UpdateParticles()
3353 minActiveIndex = index; in UpdateParticles()
3356 if (maxActiveIndex < index) in UpdateParticles()
3358 maxActiveIndex = index; in UpdateParticles()
3361 *pAliveIndex = index; // 別バッファにコピーしつつ整列していく in UpdateParticles()
3405 int index = *pActiveIndex; in UpdateParticles() local
3407 NW_ASSERT(index != 0xffff); in UpdateParticles()
3409 if ((work[index] & 0x80000000) == 0) in UpdateParticles()
3411 *pDestroyIndex++ = index; in UpdateParticles()
3416 if (minActiveIndex > index) in UpdateParticles()
3418 minActiveIndex = index; in UpdateParticles()
3421 if (maxActiveIndex < index) in UpdateParticles()
3423 maxActiveIndex = index; in UpdateParticles()
3426 *pAliveIndex = index; in UpdateParticles()
3464 int index = *pActiveIndex; in UpdateParticles()
3466 NW_ASSERT(index != 0xffff); in UpdateParticles()
3468 …if (birth[index].GetParticleTimeValue() + life[index].GetParticleTimeValue() <= time.GetParticleTi… in UpdateParticles()
3470 *pDestroyIndex++ = index; in UpdateParticles()
3474 if (minActiveIndex > index) in UpdateParticles()
3476 minActiveIndex = index; in UpdateParticles()
3479 if (maxActiveIndex < index) in UpdateParticles()
3481 maxActiveIndex = index; in UpdateParticles()
3484 *pAliveIndex = index; // 別バッファにコピーしつつ整列していく in UpdateParticles()
3499 int index = *pActiveIndex; in UpdateParticles()
3501 NW_ASSERT(index != 0xffff); in UpdateParticles()
3503 if (birth[index].GetParticleTimeValue() <= limit.GetParticleTimeValue()) in UpdateParticles()
3505 *pDestroyIndex++ = index; in UpdateParticles()
3509 if (minActiveIndex > index) in UpdateParticles()
3511 minActiveIndex = index; in UpdateParticles()
3514 if (maxActiveIndex < index) in UpdateParticles()
3516 maxActiveIndex = index; in UpdateParticles()
3519 *pAliveIndex = index; // 別バッファにコピーしつつ整列していく in UpdateParticles()
3544 int index = *pActiveIndex; in UpdateParticles()
3546 NW_ASSERT(index != 0xffff); in UpdateParticles()
3548 …if (birth[index].GetParticleTimeValue() + life[index].GetParticleTimeValue() <= time.GetParticleTi… in UpdateParticles()
3550 *pDestroyIndex++ = index; in UpdateParticles()
3554 if (minActiveIndex > index) in UpdateParticles()
3556 minActiveIndex = index; in UpdateParticles()
3559 if (maxActiveIndex < index) in UpdateParticles()
3561 maxActiveIndex = index; in UpdateParticles()
3564 *pAliveIndex = index; in UpdateParticles()
3579 int index = *pActiveIndex; in UpdateParticles()
3581 NW_ASSERT(index != 0xffff); in UpdateParticles()
3583 if (birth[index].GetParticleTimeValue() <= limit.GetParticleTimeValue()) in UpdateParticles()
3585 *pDestroyIndex++ = index; in UpdateParticles()
3589 if (minActiveIndex > index) in UpdateParticles()
3591 minActiveIndex = index; in UpdateParticles()
3594 if (maxActiveIndex < index) in UpdateParticles()
3596 maxActiveIndex = index; in UpdateParticles()
3599 *pAliveIndex = index; in UpdateParticles()