Example #1
0
 /**
  */
 public Particle GetNext(Particle.ParticleType particleType)
 {
     if (particleType == null)
     {
         throw new ArgumentNullException("particleType cannot be null!");
     }
     return(Particle.GetInstance(ParticlePool_GetNext(nativePtr, particleType)));
 }
Example #2
0
 /**
  */
 public bool Empty(Particle.ParticleType particleType)
 {
     if (particleType == null)
     {
         throw new ArgumentNullException("particleType cannot be null!");
     }
     return(ParticlePool_IsEmpty(nativePtr, particleType));
 }
Example #3
0
 /// <summary>
 /// Releases a particle from the pool
 /// </summary>
 /// <param name="particleType"></param>
 /// <param name="name"></param>
 /// <returns></returns>
 public Particle ReleaseParticle(Particle.ParticleType particleType, String name)
 {
     if (particleType == null)
     {
         throw new ArgumentNullException("particleType cannot be null!");
     }
     return(Particle.GetInstance(ParticlePool_ReleaseParticle(nativePtr, particleType, name)));
 }
Example #4
0
 /// <summary>
 /// Destroy particles of a certain type
 /// </summary>
 /// <param name="particleType"></param>
 public void DestroyParticles(Particle.ParticleType particleType)
 {
     if (particleType == null)
     {
         throw new ArgumentNullException("particleType cannot be null!");
     }
     ParticlePool_DestroyParticles(nativePtr, particleType);
 }
Example #5
0
 /// <summary>
 /// This is not Currently Implemented.
 /// Don't use it will throw a Not Implemented Exception!
 /// </summary>
 /// <param name="particleType"></param>
 /// <param name="size"></param>
 /// <param name="behaviours"></param>
 /// <param name="technique"></param>
 public void IncreasePool(Particle.ParticleType particleType,
                          uint size,
                          ParticleBehaviour[] behaviours,
                          ParticleTechnique technique)
 {
     throw new NotImplementedException("Not Currently Implemented!");
     //ParticlePool_IncreasePool
 }
Example #6
0
 internal static extern bool ParticlePool_End(IntPtr ptr, Particle.ParticleType particleType);
Example #7
0
 internal static extern IntPtr ParticlePool_GetNext(IntPtr ptr, Particle.ParticleType particleType);
Example #8
0
 internal static extern IntPtr ParticlePool_ReleaseParticle(IntPtr ptr, Particle.ParticleType particleType, [MarshalAs(UnmanagedType.LPStr)] string name);
Example #9
0
 internal static extern void ParticlePool_DestroyParticles(IntPtr ptr, Particle.ParticleType particleType);
Example #10
0
 internal static extern uint ParticlePool_GetSize(IntPtr ptr, Particle.ParticleType particleType);
Example #11
0
 internal static extern bool ParticlePool_IsEmpty(IntPtr ptr, Particle.ParticleType particleType);