[Development] Open up the particle C++ API for custom particle affectors?

Mark markg85 at gmail.com
Sun May 19 20:05:26 CEST 2013


On Sun, May 19, 2013 at 7:08 PM, Alan Alpert <416365416c at gmail.com> wrote:
> On Sun, May 19, 2013 at 8:06 AM, Mark <markg85 at gmail.com> wrote:
>> Hi,
>>
>> When searching for a way to make a custom particle affector i found a
>> few things.
>>
>> 1. There is an undocumented feature in Affector{} called
>> "onAffectParticles" which is only mentioned in the "onAffected" docs
>> [1], not as it's own signal.
>
> This is a doc bug. I'm not sure why "onAffectParticles" isn't showing
> up, the docs are right up the top of qquickcustomaffector.cpp...

There are more missing properties throughout the QML elements so
perhaps there is something wrong with the QML doc parser?
>
>> 2. Those same docs [1] suggest against using onAffectParticles for
>> high volume particles yet the C++ approach is only available through
>> private headers. So i would like to request to open up the C++
>> particle api to be able to make C++ side custom affectors. For that
>> the following classes have to be opened up:
>> - QQuickParticleAffector
>> - QQuickParticleData
>>
>> Those are the classes i could find when browsing through other C++
>> side affectors (like Age and Gravity). Can QQuickParticleAffector
>> QQuickParticleData be opened up for Qt 5.1?
>
> The C++ API is planned to be opened up (there's a more complete list
> of classes in the plan too, allowing C++ custom emitters and
> painters), but it won't make Qt 5.1 as there still a fair bit of work
> that needs to be done first.

Ahh, that's both good and bad :) I don't actually need it at the
moment, but it would be a "nice to have" thing at some point in time.
>
> --
> Alan Alpert



More information about the Development mailing list