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); } }
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); }