Beispiel #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);
     }
 }
Beispiel #2
0
 public bool UsePoints(ParticleSystem system)
 {
     return((this.usePoints == Particle.INHERIT_POINTS) &&
            (system.UsePoints()) ||
            (this.usePoints == Particle.USE_POINTS));
 }
 public bool UsePoints(ParticleSystem system)
 {
     return (this.usePoints == Particle.INHERIT_POINTS)
         && (system.UsePoints())
         || (this.usePoints == Particle.USE_POINTS);
 }