Package mindustry.graphics
Class Drawf
java.lang.Object
mindustry.graphics.Drawf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
additive
(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y) static void
additive
(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y, float rotation) static void
additive
(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float x, float y, float rotation, float layer) static void
additive
(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float alpha, float x, float y, float rotation, float layer) static void
additive
(arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float alpha, float x, float y, float width, float height, float layer) 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) static void
arrow
(float x, float y, float x2, float y2, float length, float radius) static void
arrow
(float x, float y, float x2, float y2, float length, float radius, arc.graphics.Color color) static void
buildBeam
(float x, float y, float tx, float ty, float radius) static void
checkBleed
(arc.graphics.Pixmap pixmap) Bleeds a mod pixmap if linear filtering is enabled.static void
circles
(float x, float y, float rad) static void
circles
(float x, float y, float rad, arc.graphics.Color color) static void
construct
(float x, float y, arc.graphics.g2d.TextureRegion region, float rotation, float progress, float alpha, float time) static void
construct
(float x, float y, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float rotation, float progress, float alpha, float time) static void
construct
(mindustry.gen.Building t, arc.graphics.g2d.TextureRegion region, float rotation, float progress, float alpha, float time) static void
construct
(mindustry.gen.Building t, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float rotation, float progress, float alpha, float time) 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) static void
construct
(mindustry.gen.Building t, UnlockableContent content, float rotation, float progress, float alpha, float time) static void
dashCircle
(float x, float y, float rad, arc.graphics.Color color) static void
dashLine
(arc.graphics.Color color, float x, float y, float x2, float y2) static void
dashLine
(arc.graphics.Color color, float x, float y, float x2, float y2, int segments) static void
dashLineBasic
(float x, float y, float x2, float y2) static void
dashLineDst
(arc.graphics.Color color, float x, float y, float x2, float y2) static void
dashRect
(arc.graphics.Color color, float x, float y, float width, float height) static void
dashRect
(arc.graphics.Color color, arc.math.geom.Rect rect) static void
dashRectBasic
(float x, float y, float width, float height) static void
dashSquare
(arc.graphics.Color color, float x, float y, float size) static void
dashSquareBasic
(float x, float y, float size) static void
flame
(float x, float y, int divisions, float rotation, float length, float width, float pan) static void
flameFront
(float x, float y, int divisions, float rotation, float length, float width) static void
laser
(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion edge, float x, float y, float x2, float y2) static void
laser
(arc.graphics.g2d.TextureRegion line, arc.graphics.g2d.TextureRegion edge, float x, float y, float x2, float y2, float scale) 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) 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) static void
light
(float x, float y, float x2, float y2) static void
light
(float x, float y, float x2, float y2, float stroke, arc.graphics.Color tint, float alpha) static void
light
(float x, float y, float radius, arc.graphics.Color color, float opacity) static void
light
(float x, float y, arc.graphics.g2d.TextureRegion region, float rotation, arc.graphics.Color color, float opacity) static void
light
(float x, float y, arc.graphics.g2d.TextureRegion region, arc.graphics.Color color, float opacity) static void
light
(arc.math.geom.Position pos, float radius, arc.graphics.Color color, float opacity) static void
limitLine
(arc.math.geom.Position start, arc.math.geom.Position dest, float len1, float len2) static void
limitLine
(arc.math.geom.Position start, arc.math.geom.Position dest, float len1, float len2, arc.graphics.Color color) static void
line
(arc.graphics.Color color, float x, float y, float x2, float y2) static void
liquid
(arc.graphics.g2d.TextureRegion region, float x, float y, float alpha, arc.graphics.Color color) static void
liquid
(arc.graphics.g2d.TextureRegion region, float x, float y, float alpha, arc.graphics.Color color, float rotation) static void
poly
(float x, float y, int sides, float radius, float rotation, arc.graphics.Color color) static void
select
(float x, float y, float radius, arc.graphics.Color color) static void
static void
selected
(mindustry.gen.Building tile, arc.graphics.Color color) static void
static void
shadow
(float x, float y, float rad) static void
shadow
(float x, float y, float rad, float alpha) static void
shadow
(arc.graphics.g2d.TextureRegion region, float x, float y) static void
shadow
(arc.graphics.g2d.TextureRegion region, float x, float y, float rotation) static void
shadow
(arc.graphics.g2d.TextureRegion region, float x, float y, float width, float height, float rotation) 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.static void
square
(float x, float y, float radius) static void
square
(float x, float y, float radius, float rotation) static void
square
(float x, float y, float radius, float rotation, arc.graphics.Color color) static void
square
(float x, float y, float radius, arc.graphics.Color color) static void
squareShadow
(float x, float y, float rad, float alpha) static void
target
(float x, float y, float rad, float alpha, arc.graphics.Color color) static void
target
(float x, float y, float rad, arc.graphics.Color color) static float
text()
Sets Draw.z to the text layer, and returns the previous layer.static void
tri
(float x, float y, float width, float length, float rotation) static void
underwater
(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) -
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.
-