Class IndexedRenderer

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

public class IndexedRenderer extends Object implements Disposable
  • Constructor Details

    • IndexedRenderer

      public IndexedRenderer(int sprites)
  • Method Details

    • render

      public void render(Texture texture)
    • setColor

      public void setColor(Color color)
    • draw

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

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

      public Mat getTransformMatrix()
    • setProjectionMatrix

      public void setProjectionMatrix(Mat matrix)
    • resize

      public void resize(int sprites)
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable