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