Class LightRenderer

java.lang.Object
mindustry.graphics.LightRenderer

public class LightRenderer extends Object
Renders overlay lights. Client only.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(float x, float y, float radius, arc.graphics.Color color, float opacity)
     
    void
    add(float x, float y, arc.graphics.g2d.TextureRegion region, float rotation, arc.graphics.Color color, float opacity)
     
    void
    add(float x, float y, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float opacity)
     
    void
     
    void
     
    boolean
     
    void
    line(float x, float y, float x2, float y2, float stroke, arc.graphics.Color tint, float alpha)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LightRenderer

      public LightRenderer()
  • Method Details

    • add

      public void add(Runnable run)
    • add

      public void add(float x, float y, float radius, arc.graphics.Color color, float opacity)
    • add

      public void add(float x, float y, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float opacity)
    • add

      public void add(float x, float y, arc.graphics.g2d.TextureRegion region, float rotation, arc.graphics.Color color, float opacity)
    • line

      public void line(float x, float y, float x2, float y2, float stroke, arc.graphics.Color tint, float alpha)
    • enabled

      public boolean enabled()
    • draw

      public void draw()