Package mindustry.graphics
Class IndexedRenderer
java.lang.Object
mindustry.graphics.IndexedRenderer
- All Implemented Interfaces:
Disposable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases all resources of this object.void
draw
(int index, TextureRegion region, float x, float y, float w, float h) void
draw
(int index, TextureRegion region, float x, float y, float w, float h, float rotation) void
void
resize
(int sprites) void
void
setProjectionMatrix
(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
-
setColor
-
draw
-
draw
public void draw(int index, TextureRegion region, float x, float y, float w, float h, float rotation) -
getTransformMatrix
-
setProjectionMatrix
-
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 interfaceDisposable
-