Class IndexedRenderer

java.lang.Object
mindustry.graphics.IndexedRenderer
All Implemented Interfaces:
arc.util.Disposable

public class IndexedRenderer extends Object implements arc.util.Disposable
  • Constructor Summary

    Constructors
    Constructor
    Description
    IndexedRenderer(int sprites)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    draw(int index, arc.graphics.g2d.TextureRegion region, float x, float y, float w, float h)
     
    void
    draw(int index, arc.graphics.g2d.TextureRegion region, float x, float y, float w, float h, float rotation)
     
    arc.math.Mat
     
    void
    render(arc.graphics.Texture texture)
     
    void
    resize(int sprites)
     
    void
    setColor(arc.graphics.Color color)
     
    void
    setProjectionMatrix(arc.math.Mat matrix)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface arc.util.Disposable

    isDisposed
  • Constructor Details

    • IndexedRenderer

      public IndexedRenderer(int sprites)
  • Method Details

    • render

      public void render(arc.graphics.Texture texture)
    • setColor

      public void setColor(arc.graphics.Color color)
    • draw

      public void draw(int index, arc.graphics.g2d.TextureRegion region, float x, float y, float w, float h)
    • draw

      public void draw(int index, arc.graphics.g2d.TextureRegion region, float x, float y, float w, float h, float rotation)
    • getTransformMatrix

      public arc.math.Mat getTransformMatrix()
    • setProjectionMatrix

      public void setProjectionMatrix(arc.math.Mat matrix)
    • resize

      public void resize(int sprites)
    • dispose

      public void dispose()
      Specified by:
      dispose in interface arc.util.Disposable