Package mindustry.graphics
Class Drawf
java.lang.Object
mindustry.graphics.Drawf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadditive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y) static voidadditive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y, float rotation) static voidadditive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y, float rotation, float layer) static voidadditive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float alpha, float x, float y, float rotation, float layer) static voidadditive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float alpha, float x, float y, float width, float height, float layer) static voidadditive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float alpha, float x, float y, float rotation, float layer, float originX, float originY) static voidarrow(float x, float y, float x2, float y2, float length, float radius) static voidarrow(float x, float y, float x2, float y2, float length, float radius, arc.graphics.Color color) static voidbuildBeam(float x, float y, float tx, float ty, float radius) static voidcheckBleed(arc.graphics.Pixmap pixmap) Bleeds a mod pixmap if linear filtering is enabled.static voidcircles(float x, float y, float rad) static voidcircles(float x, float y, float rad, arc.graphics.Color color) static voidconstruct(float x, float y, arc.graphics.g2d.TextureRegion region, float rotation, float progress, float alpha, float time) static voidconstruct(float x, float y, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float rotation, float progress, float alpha, float time) static voidconstruct(mindustry.gen.Building t, arc.graphics.g2d.TextureRegion region, float rotation, float progress, float alpha, float time) static voidconstruct(mindustry.gen.Building t, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float rotation, float progress, float alpha, float time) static voidconstruct(mindustry.gen.Building t, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float rotation, float progress, float alpha, float time, float size) static voidconstruct(mindustry.gen.Building t, UnlockableContent content, float rotation, float progress, float alpha, float time) static voidcross(float x, float y, float radius, arc.graphics.Color color) static voiddashCircle(float x, float y, float rad, arc.graphics.Color color) static voiddashLine(arc.graphics.Color color, float x, float y, float x2, float y2) static voiddashLine(arc.graphics.Color color, float x, float y, float x2, float y2, int segments) static voiddashLineBasic(float x, float y, float x2, float y2) static voiddashLineDst(arc.graphics.Color color, float x, float y, float x2, float y2) static voiddashRect(arc.graphics.Color color, float x, float y, float width, float height) static voiddashRect(arc.graphics.Color color, arc.math.geom.Rect rect) static voiddashRectBasic(float x, float y, float width, float height) static voiddashSquare(arc.graphics.Color color, float x, float y, float size) static voiddashSquareBasic(float x, float y, float size) static voidflame(float x, float y, int divisions, float rotation, float length, float width, float pan) static voidflameFront(float x, float y, int divisions, float rotation, float length, float width) static voidlaser(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion edge, float x, float y, float x2, float y2) static voidlaser(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion edge, float x, float y, float x2, float y2, float scale) static voidlaser(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion start, arc.graphics.g2d.TextureRegion end, float x, float y, float x2, float y2) static voidlaser(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion start, arc.graphics.g2d.TextureRegion end, float x, float y, float x2, float y2, float scale) static voidlight(float x, float y, float x2, float y2) static voidlight(float x, float y, float x2, float y2, float stroke, arc.graphics.Color tint, float alpha) static voidlight(float x, float y, float radius, arc.graphics.Color color, float opacity) static voidlight(float x, float y, arc.graphics.g2d.TextureRegion region, float rotation, arc.graphics.Color color, float opacity) static voidlight(float x, float y, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float opacity) static voidlight(arc.math.geom.Position pos, float radius, arc.graphics.Color color, float opacity) static voidlimitLine(arc.math.geom.Position start, arc.math.geom.Position dest, float len1, float len2) static voidlimitLine(arc.math.geom.Position start, arc.math.geom.Position dest, float len1, float len2, arc.graphics.Color color) static voidline(arc.graphics.Color color, float x, float y, float x2, float y2) static voidliquid(arc.graphics.g2d.TextureRegion region, float x, float y, float alpha, arc.graphics.Color color) static voidliquid(arc.graphics.g2d.TextureRegion region, float x, float y, float alpha, arc.graphics.Color color, float rotation) static voidpoly(float x, float y, int sides, float radius, float rotation, arc.graphics.Color color) static voidselect(float x, float y, float radius, arc.graphics.Color color) static voidstatic voidselected(mindustry.gen.Building tile, arc.graphics.Color color) static voidstatic voidshadow(float x, float y, float rad) static voidshadow(float x, float y, float rad, float alpha) static voidshadow(arc.graphics.g2d.TextureRegion region, float x, float y) static voidshadow(arc.graphics.g2d.TextureRegion region, float x, float y, float rotation) static voidshadow(arc.graphics.g2d.TextureRegion region, float x, float y, float width, float height, float rotation) static voidspinSprite(arc.graphics.g2d.TextureRegion region, float x, float y, float r) Draws a sprite that should be light-wise correct, when rotated.static voidsquare(float x, float y, float radius) static voidsquare(float x, float y, float radius, float rotation) static voidsquare(float x, float y, float radius, float rotation, arc.graphics.Color color) static voidsquare(float x, float y, float radius, arc.graphics.Color color) static voidsquareShadow(float x, float y, float rad, float alpha) static voidtarget(float x, float y, float rad, float alpha, arc.graphics.Color color) static voidtarget(float x, float y, float rad, arc.graphics.Color color) static floattext()Sets Draw.z to the text layer, and returns the previous layer.static voidtri(float x, float y, float width, float length, float rotation) static voidunderwater(Runnable run)
-
Constructor Details
-
Drawf
public Drawf()
-
-
Method Details
-
checkBleed
public static void checkBleed(arc.graphics.Pixmap pixmap) Bleeds a mod pixmap if linear filtering is enabled. -
underwater
-
flame
public static void flame(float x, float y, int divisions, float rotation, float length, float width, float pan) -
flameFront
public static void flameFront(float x, float y, int divisions, float rotation, float length, float width) -
buildBeam
public static void buildBeam(float x, float y, float tx, float ty, float radius) -
additive
public static void additive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y) -
additive
public static void additive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y, float rotation) -
additive
public static void additive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y, float rotation, float layer) -
additive
public static void additive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float alpha, float x, float y, float width, float height, float layer) -
additive
public static void additive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float alpha, float x, float y, float rotation, float layer) -
additive
public static void additive(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float alpha, float x, float y, float rotation, float layer, float originX, float originY) -
limitLine
public static void limitLine(arc.math.geom.Position start, arc.math.geom.Position dest, float len1, float len2, arc.graphics.Color color) -
limitLine
public static void limitLine(arc.math.geom.Position start, arc.math.geom.Position dest, float len1, float len2) -
dashLineDst
public static void dashLineDst(arc.graphics.Color color, float x, float y, float x2, float y2) -
dashLine
public static void dashLine(arc.graphics.Color color, float x, float y, float x2, float y2) -
dashLine
public static void dashLine(arc.graphics.Color color, float x, float y, float x2, float y2, int segments) -
line
public static void line(arc.graphics.Color color, float x, float y, float x2, float y2) -
dashLineBasic
public static void dashLineBasic(float x, float y, float x2, float y2) -
dashSquare
public static void dashSquare(arc.graphics.Color color, float x, float y, float size) -
dashRect
public static void dashRect(arc.graphics.Color color, arc.math.geom.Rect rect) -
dashRect
public static void dashRect(arc.graphics.Color color, float x, float y, float width, float height) -
dashSquareBasic
public static void dashSquareBasic(float x, float y, float size) -
dashRectBasic
public static void dashRectBasic(float x, float y, float width, float height) -
target
public static void target(float x, float y, float rad, arc.graphics.Color color) -
target
public static void target(float x, float y, float rad, float alpha, arc.graphics.Color color) -
text
public static float text()Sets Draw.z to the text layer, and returns the previous layer. -
light
public static void light(float x, float y, float radius, arc.graphics.Color color, float opacity) -
light
public static void light(arc.math.geom.Position pos, float radius, arc.graphics.Color color, float opacity) -
light
public static void light(float x, float y, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float opacity) -
light
public static void light(float x, float y, arc.graphics.g2d.TextureRegion region, float rotation, arc.graphics.Color color, float opacity) -
light
public static void light(float x, float y, float x2, float y2) -
light
public static void light(float x, float y, float x2, float y2, float stroke, arc.graphics.Color tint, float alpha) -
selected
public static void selected(mindustry.gen.Building tile, arc.graphics.Color color) -
selected
-
selected
-
shadow
public static void shadow(float x, float y, float rad) -
squareShadow
public static void squareShadow(float x, float y, float rad, float alpha) -
shadow
public static void shadow(float x, float y, float rad, float alpha) -
shadow
public static void shadow(arc.graphics.g2d.TextureRegion region, float x, float y, float rotation) -
shadow
public static void shadow(arc.graphics.g2d.TextureRegion region, float x, float y) -
shadow
public static void shadow(arc.graphics.g2d.TextureRegion region, float x, float y, float width, float height, float rotation) -
liquid
public static void liquid(arc.graphics.g2d.TextureRegion region, float x, float y, float alpha, arc.graphics.Color color, float rotation) -
liquid
public static void liquid(arc.graphics.g2d.TextureRegion region, float x, float y, float alpha, arc.graphics.Color color) -
dashCircle
public static void dashCircle(float x, float y, float rad, arc.graphics.Color color) -
circles
public static void circles(float x, float y, float rad) -
circles
public static void circles(float x, float y, float rad, arc.graphics.Color color) -
select
public static void select(float x, float y, float radius, arc.graphics.Color color) -
square
public static void square(float x, float y, float radius, float rotation, arc.graphics.Color color) -
cross
public static void cross(float x, float y, float radius, arc.graphics.Color color) -
poly
public static void poly(float x, float y, int sides, float radius, float rotation, arc.graphics.Color color) -
square
public static void square(float x, float y, float radius, float rotation) -
square
public static void square(float x, float y, float radius, arc.graphics.Color color) -
square
public static void square(float x, float y, float radius) -
arrow
public static void arrow(float x, float y, float x2, float y2, float length, float radius) -
arrow
public static void arrow(float x, float y, float x2, float y2, float length, float radius, arc.graphics.Color color) -
laser
public static void laser(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion edge, float x, float y, float x2, float y2) -
laser
public static void laser(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion start, arc.graphics.g2d.TextureRegion end, float x, float y, float x2, float y2) -
laser
public static void laser(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion edge, float x, float y, float x2, float y2, float scale) -
laser
public static void laser(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion start, arc.graphics.g2d.TextureRegion end, float x, float y, float x2, float y2, float scale) -
tri
public static void tri(float x, float y, float width, float length, float rotation) -
construct
public static void construct(mindustry.gen.Building t, UnlockableContent content, float rotation, float progress, float alpha, float time) -
construct
public static void construct(float x, float y, arc.graphics.g2d.TextureRegion region, float rotation, float progress, float alpha, float time) -
construct
public static void construct(float x, float y, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float rotation, float progress, float alpha, float time) -
construct
public static void construct(mindustry.gen.Building t, arc.graphics.g2d.TextureRegion region, float rotation, float progress, float alpha, float time) -
construct
public static void construct(mindustry.gen.Building t, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float rotation, float progress, float alpha, float time) -
construct
public static void construct(mindustry.gen.Building t, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float rotation, float progress, float alpha, float time, float size) -
spinSprite
public static void spinSprite(arc.graphics.g2d.TextureRegion region, float x, float y, float r) Draws a sprite that should be light-wise correct, when rotated. Provided sprite must be symmetrical in shape.
-