Lines Matching refs:collection

637     ParticleCollection* collection,  in SetDefaultValues()  argument
645 if (!collection->IsStream(PARTICLEUSAGE_LIFE)) in SetDefaultValues()
647 lifeParam = *(ParticleTime*)collection->GetParameterPtr(PARTICLEUSAGE_LIFE); in SetDefaultValues()
650 …u16* activeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_FRONT… in SetDefaultValues()
653 …const int startIndex = (isAscendingOrder)? collection->GetCount() : collection->GetCapacity() - co… in SetDefaultValues()
656 … u16* pFreeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_FREEINDEX, PARTICLE_BUFFER_FRONT); in SetDefaultValues()
658 pFreeIndex += collection->GetCapacity() - collection->GetCount() - 1; in SetDefaultValues()
660 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in SetDefaultValues()
663 …nw::math::VEC3* translate = (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PAR… in SetDefaultValues()
666 …nw::math::VEC3* velocity = (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_VELOCITY, PARTI… in SetDefaultValues()
669 …ParticleTime* limit = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_NEG_TIMELIMIT, PARTICL… in SetDefaultValues()
672 int minIndex = collection->GetMinActiveIndex(); in SetDefaultValues()
673 int maxIndex = collection->GetMaxActiveIndex(); in SetDefaultValues()
705 collection->SetMinActiveIndex(minIndex); in SetDefaultValues()
706 collection->SetMaxActiveIndex(maxIndex); in SetDefaultValues()
721 ParticleCollection* collection = this->GetParticleCollection(); in AddParticles() local
723 const int collectionCount = collection->GetCount(); in AddParticles()
724 const int collectionCapacity = collection->GetCapacity(); in AddParticles()
752 SetDefaultValues(collection, positions, particleCount, time, isAscendingOrder); in AddParticles()
756 collection->SetCount(collectionCount + particleCount); in AddParticles()
771 …u16* activeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_FRONT… in AddParticles()
774 … (math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PARTICLE_BUFFER_FRONT); in AddParticles()
777 … (math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_VELOCITY, PARTICLE_BUFFER_FRONT); in AddParticles()
796 …u16* activeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_FRONT… in AddParticles()
799 (math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PARTICLE_BUFFER_FRONT); in AddParticles()
802 (math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_VELOCITY, PARTICLE_BUFFER_FRONT); in AddParticles()
854 ParticleCollection* collection = this->GetParticleCollection(); in AddParticles() local
856 const int collectionCount = collection->GetCount(); in AddParticles()
857 const int collectionCapacity = collection->GetCapacity(); in AddParticles()
876 …u16* activeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_FRONT… in AddParticles()
879 …const int startIndex = (isAscendingOrder)? collection->GetCount() : collection->GetCapacity() - co… in AddParticles()
882 … u16* pFreeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_FREEINDEX, PARTICLE_BUFFER_FRONT); in AddParticles()
884 pFreeIndex += collection->GetCapacity() - collection->GetCount() - 1; in AddParticles()
886 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in AddParticles()
889 …nw::math::VEC3* velocity = (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_VELOCITY, PARTI… in AddParticles()
892 int minIndex = collection->GetMinActiveIndex(); in AddParticles()
893 int maxIndex = collection->GetMaxActiveIndex(); in AddParticles()
920 collection->SetMinActiveIndex(minIndex); in AddParticles()
921 collection->SetMaxActiveIndex(maxIndex); in AddParticles()
923 collection->SetCount(collectionCount + particleCount); in AddParticles()
938 ParticleCollection* collection = this->GetParticleCollection(); in InitializeParticles() local
940 …u16* activeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_FRONT… in InitializeParticles()
960 if (collection->GetBufferSide()) in InitializeParticles()
1205 …nw::math::VEC3* trans = (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PARTICL… in InitializeParticles()
1285 …nw::math::VEC3* trans = (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PARTICL… in InitializeParticles()
1427 …ParticleTime* limit = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_NEG_TIMELIMIT, PARTICL… in InitializeParticles()
1541 ParticleCollection* collection, in ParticleAccelarationUpdater() argument
1551 …nw::math::VEC3* storagePtr = (nw::math::VEC3*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRO… in ParticleAccelarationUpdater()
1558 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleAccelarationUpdater()
1559 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleAccelarationUpdater()
1569 ParticleCollection* collection, in ParticleFloatImmediateUpdater() argument
1576 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleFloatImmediateUpdater()
1580 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleFloatImmediateUpdater()
1592 f32* storagePtr = (f32*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRONT); in ParticleFloatImmediateUpdater()
1609 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleFloatImmediateUpdater()
1610 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediateUpdater()
1617 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleFloatImmediateUpdater()
1618 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediateUpdater()
1656 ParticleCollection* collection, in ParticleFloatImmediate4KeyUpdater() argument
1662 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleFloatImmediate4KeyUpdater()
1666 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleFloatImmediate4KeyUpdater()
1672 f32* storagePtr = (f32*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRONT); in ParticleFloatImmediate4KeyUpdater()
1686 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleFloatImmediate4KeyUpdater()
1687 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediate4KeyUpdater()
1712 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleFloatImmediate4KeyUpdater()
1713 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleFloatImmediate4KeyUpdater()
1746 ParticleCollection* collection, in ParticleGravityUpdater() argument
1766 storagePtr += collection->GetMinActiveIndex(); in ParticleGravityUpdater()
1767 const int count = collection->GetMaxActiveIndex() - collection->GetMinActiveIndex() + 1; in ParticleGravityUpdater()
1775 ParticleCollection* collection, in ParticleSpinUpdater() argument
1785 …nw::math::VEC3* storagePtr = (nw::math::VEC3*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRO… in ParticleSpinUpdater()
1798 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleSpinUpdater()
1799 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleSpinUpdater()
1815 ParticleCollection* collection, in ParticleRandomUpdater() argument
1823 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleRandomUpdater()
1827 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleRandomUpdater()
1833 …nw::math::VEC3* storagePtr = (nw::math::VEC3*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRO… in ParticleRandomUpdater()
1848 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleRandomUpdater()
1849 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRandomUpdater()
1862 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleRandomUpdater()
1863 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRandomUpdater()
1895 ParticleCollection* collection, in ParticleVector2ImmediateUpdater() argument
1902 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleVector2ImmediateUpdater()
1906 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleVector2ImmediateUpdater()
1928 …nw::math::VEC2* storagePtr = (nw::math::VEC2*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRO… in ParticleVector2ImmediateUpdater()
1933 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleVector2ImmediateUpdater()
1934 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector2ImmediateUpdater()
1992 ParticleCollection* collection, in ParticleVector3AdditiveUpdater() argument
1998 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleVector3AdditiveUpdater()
2002 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleVector3AdditiveUpdater()
2014 …nw::math::VEC3* storagePtr = (nw::math::VEC3*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRO… in ParticleVector3AdditiveUpdater()
2029 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleVector3AdditiveUpdater()
2030 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3AdditiveUpdater()
2105 ParticleCollection* collection, in ParticleVector3ImmediateUpdater() argument
2110 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleVector3ImmediateUpdater()
2114 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleVector3ImmediateUpdater()
2136 …nw::math::VEC3* storagePtr = (nw::math::VEC3*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRO… in ParticleVector3ImmediateUpdater()
2141 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleVector3ImmediateUpdater()
2142 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3ImmediateUpdater()
2210 ParticleCollection* collection, in ParticleVector3RandomAdditiveUpdater() argument
2216 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleVector3RandomAdditiveUpdater()
2220 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleVector3RandomAdditiveUpdater()
2242 …nw::math::VEC3* storagePtr = (nw::math::VEC3*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRO… in ParticleVector3RandomAdditiveUpdater()
2247 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleVector3RandomAdditiveUpdater()
2248 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleVector3RandomAdditiveUpdater()
2316 ParticleCollection* collection in ParticleRotateUpVectorUpdater() argument
2326 (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_ROTATE, PARTICLE_BUFFER_FRONT); in ParticleRotateUpVectorUpdater()
2336 … (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_VELOCITY, PARTICLE_BUFFER_FRONT); in ParticleRotateUpVectorUpdater()
2338 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleRotateUpVectorUpdater()
2339 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRotateUpVectorUpdater()
2361 … (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PARTICLE_BUFFER_FRONT); in ParticleRotateUpVectorUpdater()
2363 … (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PARTICLE_BUFFER_BACK); in ParticleRotateUpVectorUpdater()
2365 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleRotateUpVectorUpdater()
2366 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleRotateUpVectorUpdater()
2393 ParticleCollection* collection, in ParticleTexturePatternUpdater() argument
2400 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleTexturePatternUpdater()
2404 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleTexturePatternUpdater()
2426 …nw::math::VEC2* storagePtr = (nw::math::VEC2*)collection->GetStreamPtr(target, PARTICLE_BUFFER_FRO… in ParticleTexturePatternUpdater()
2437 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in ParticleTexturePatternUpdater()
2438 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in ParticleTexturePatternUpdater()
2503 ParticleCollection* collection, in ParticleChildUpdater() argument
2520 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in ParticleChildUpdater()
2524 collection->GetStreamOrParameter(PARTICLEUSAGE_LIFE, &life, &lifeParam, PARTICLE_BUFFER_FRONT); in ParticleChildUpdater()
2537 … (nw::math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PARTICLE_BUFFER_FRONT); in ParticleChildUpdater()
2541collection->GetStreamOrParameter(PARTICLEUSAGE_ROTATE, &rotate, &rotateParam, PARTICLE_BUFFER_FRON… in ParticleChildUpdater()
2545collection->GetStreamOrParameter(PARTICLEUSAGE_SCALE, &scale, &scaleParam, PARTICLE_BUFFER_FRONT); in ParticleChildUpdater()
2557 …ParticleTime* limit = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_NEG_TIMELIMIT, PARTICL… in ParticleChildUpdater()
2774 ParticleCollection* collection = this->GetParticleCollection(); in UpdateParticles() local
2775 collection->SwapBuffer(); in UpdateParticles()
2794 const int collectionCapacity = collection->GetCapacity(); in UpdateParticles()
2795 const int count = collection->GetCount(); in UpdateParticles()
2820 if (collection->GetBufferSide()) in UpdateParticles()
2832 ParticleAccelarationUpdater(updater.ptr(), collection, diffTime); in UpdateParticles()
2835 ParticleFloatImmediateUpdater(updater.ptr(), collection, time, updaterIndex); in UpdateParticles()
2839 ParticleFloatImmediate4KeyUpdater(updater.ptr(), collection, time); in UpdateParticles()
2843 … ParticleGravityUpdater((nw::math::VEC3*)targetStream, updater.ptr(), collection, diffTime); in UpdateParticles()
2846 ParticleSpinUpdater(updater.ptr(), collection, diffTime); in UpdateParticles()
2849 … ParticleRandomUpdater(updater.ptr(), collection, time, prevTime, this->m_ParticleRandom); in UpdateParticles()
2852 ParticleVector2ImmediateUpdater(updater.ptr(), collection, time, updaterIndex); in UpdateParticles()
2860 … ParticleVector3AdditiveUpdater(updater.ptr(), collection, time, diffTime, updaterIndex); in UpdateParticles()
2873 storagePtr += collection->GetMinActiveIndex(); in UpdateParticles()
2874 … const int processCount = collection->GetMaxActiveIndex() - collection->GetMinActiveIndex() + 1; in UpdateParticles()
2887 … ParticleVector3ImmediateUpdater(updater.ptr(), collection, time, updaterIndex); in UpdateParticles()
2898 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in UpdateParticles()
2899 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in UpdateParticles()
2914 … ParticleVector3RandomAdditiveUpdater(updater.ptr(), collection, time, diffTime, updaterIndex); in UpdateParticles()
2925 const u32 maxIndex = collection->GetMaxActiveIndex() + 1; in UpdateParticles()
2926 for (u32 index = collection->GetMinActiveIndex(); index < maxIndex; ++index) in UpdateParticles()
2936 ParticleRotateUpVectorUpdater(updater.ptr(), collection); in UpdateParticles()
2939 ParticleTexturePatternUpdater(updater.ptr(), collection, time, updaterIndex); in UpdateParticles()
2943 …u16* activeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_BACK); in UpdateParticles()
2949 …ParticleChildUpdater(updater.ptr(), collection, activeIndex, startIndex, incrIndex, count, time, p… in UpdateParticles()
2951 …ParticleChildUpdater(updater.ptr(), collection, activeIndex, startIndex, incrIndex, count, time, p… in UpdateParticles()
2987 … (math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_TRANSLATE, PARTICLE_BUFFER_FRONT); in UpdateParticles()
2990 … (math::VEC3*)collection->GetStreamPtr(PARTICLEUSAGE_VELOCITY, PARTICLE_BUFFER_FRONT); in UpdateParticles()
2992 trans += collection->GetMinActiveIndex(); in UpdateParticles()
2993 velocity += collection->GetMinActiveIndex(); in UpdateParticles()
2994 … const int processCount = collection->GetMaxActiveIndex() - collection->GetMinActiveIndex() + 1; in UpdateParticles()
3008 int minActiveIndex = collection->GetMinActiveIndex(); in UpdateParticles()
3009 int maxActiveIndex = collection->GetMaxActiveIndex(); in UpdateParticles()
3015 … f32* limit = (f32*)collection->GetStreamPtr(PARTICLEUSAGE_NEG_TIMELIMIT, PARTICLE_BUFFER_FRONT); in UpdateParticles()
3026 const int prevCollectionCount = collection->GetCount(); in UpdateParticles()
3032 …u16* activeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_BACK); in UpdateParticles()
3033 …u16* newActiveIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_FR… in UpdateParticles()
3034 … u16* freeIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_FREEINDEX, PARTICLE_BUFFER_FRONT); in UpdateParticles()
3073 …ParticleTime* birth = (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_BIRTH, PARTICLE_BUFFER… in UpdateParticles()
3076 const int prevCollectionCount = collection->GetCount(); in UpdateParticles()
3082 …u16* pActiveIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_BACK… in UpdateParticles()
3085 …u16* pAliveIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_ACTIVEINDEX, PARTICLE_BUFFER_FRONT… in UpdateParticles()
3088 …u16* pDestroyIndex = (u16*)collection->GetStreamPtr(PARTICLEUSAGE_FREEINDEX, PARTICLE_BUFFER_FRONT… in UpdateParticles()
3094 if (collection->IsStream(PARTICLEUSAGE_LIFE)) in UpdateParticles()
3097 (ParticleTime*)collection->GetStreamPtr(PARTICLEUSAGE_LIFE, PARTICLE_BUFFER_FRONT); in UpdateParticles()
3130 (ParticleTime*)collection->GetParameterPtr(PARTICLEUSAGE_LIFE); in UpdateParticles()
3164 collection->SetMinActiveIndex(minActiveIndex); in UpdateParticles()
3165 collection->SetMaxActiveIndex(maxActiveIndex); in UpdateParticles()
3166 collection->SetCount(aliveCount); in UpdateParticles()