Esempio n. 1
0
 public void Render()
 {
     if ((engine.UsePoints() && (usePoints == INHERIT_POINTS)) ||
         (usePoints == USE_POINTS))
     {
         GLEx gl = GLEx.Self;
         gl.GLBegin(GL.GL_POINTS);
         gl.GLColor(color);
         gl.GLVertex2f(x, y);
         gl.GLEnd();
     }
     else
     {
         float angle = 0;
         if (oriented)
         {
             angle = MathUtils.Atan2(y, x) * 180 / MathUtils.PI;
         }
         image.Draw((x - (size / 2)), (y - (size / 2)), size, size, angle,
                    color);
     }
 }
Esempio n. 2
0
 public bool UsePoints(ParticleSystem system)
 {
     return((this.usePoints == Particle.INHERIT_POINTS) &&
            (system.UsePoints()) ||
            (this.usePoints == Particle.USE_POINTS));
 }
Esempio n. 3
0
 public bool UsePoints(ParticleSystem system)
 {
     return (this.usePoints == Particle.INHERIT_POINTS)
         && (system.UsePoints())
         || (this.usePoints == Particle.USE_POINTS);
 }