Declaration: TParticles.CountMarkedParticles (mask: integer): integer;

The function CountMarkedParticles returns the number of particles which are marked. The type of marking is defined by the parameter mask, which may assume the values FLAG_MARKFORDEL and/or FLAG_MARKASDONE.

Please note that the mark state is controlled by the following properties and methods: MarkForDeletion, MarkedAsDone, SetAllDelMarks and SetAllDoneMarks.

Hint: In order to access the particles currently loaded in the particle editor you can use the pre-declared global variable PEData.