Example #1
0
 public void set(ParticleColor color)
 {
     r = color.r;
     g = color.g;
     b = color.b;
     a = color.a;
 }
Example #2
0
 public override void drawParticlesWireframe(Vec2[] centers, float radius, ParticleColor[] colors, int count)
 {
     Color4f pcolorA = new Color4f(1f, 1f, 1f);
     for (int i = 0; i < count; i++)
     {
         Vec2 center = centers[i];
         Color4f color;
         if (colors == null)
         {
             color = pcolorA;
         }
         else
         {
             ParticleColor c = colors[i];
             color = new Color4f(c.r * 1f / 127, c.g * 1f / 127, c.b * 1f / 127, c.a * 1f / 127);
         }
         drawCircle(center, radius, color);
     }
 }
Example #3
0
 /**
    * Draw a particle array
    *
    * @param colors can be null
    */
 public abstract void drawParticlesWireframe(Vec2[] centers, float radius, ParticleColor[] colors,
     int count);
Example #4
0
 public void setParticleColorBuffer(ParticleColor[] buffer, int capacity)
 {
     m_particleSystem.setParticleColorBuffer(buffer, capacity);
 }