Package mindustry.graphics
Class Drawf
java.lang.Object
mindustry.graphics.Drawf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
additive
(TextureRegion region, Color color, float x, float y) static void
additive
(TextureRegion region, Color color, float x, float y, float rotation) static void
additive
(TextureRegion region, Color color, float x, float y, float rotation, float layer) static void
additive
(TextureRegion region, Color color, float alpha, float x, float y, float rotation, float layer) static void
arrow
(float x, float y, float x2, float y2, float length, float radius) static void
static void
buildBeam
(float x, float y, float tx, float ty, float radius) static void
checkBleed
(Pixmap pixmap) Bleeds a mod pixmap if linear filtering is enabled.static void
circles
(float x, float y, float rad) static void
static void
construct
(float x, float y, TextureRegion region, float rotation, float progress, float alpha, float time) static void
construct
(float x, float y, TextureRegion region, Color color, float rotation, float progress, float alpha, float time) static void
construct
(mindustry.gen.Building t, TextureRegion region, float rotation, float progress, float alpha, float time) static void
construct
(mindustry.gen.Building t, TextureRegion region, Color color, float rotation, float progress, float alpha, float time) static void
construct
(mindustry.gen.Building t, TextureRegion region, 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, Color color) static void
static void
static void
dashLineBasic
(float x, float y, float x2, float y2) static void
dashLineDst
(Color color, float x, float y, float x2, float y2) static void
static void
static void
dashRectBasic
(float x, float y, float width, float height) static void
dashSquare
(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
(TextureRegion line, TextureRegion edge, float x, float y, float x2, float y2) static void
laser
(TextureRegion line, TextureRegion edge, float x, float y, float x2, float y2, float scale) static void
laser
(TextureRegion line, TextureRegion start, TextureRegion end, float x, float y, float x2, float y2) static void
laser
(TextureRegion line, TextureRegion start, 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
static void
static void
light
(float x, float y, TextureRegion region, float rotation, Color color, float opacity) static void
light
(float x, float y, TextureRegion region, Color color, float opacity) static void
static void
static void
static void
liquid
(TextureRegion region, float x, float y, float alpha, Color color) static void
liquid
(TextureRegion region, float x, float y, float alpha, Color color, float rotation) static void
static void
static void
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
(TextureRegion region, float x, float y) static void
shadow
(TextureRegion region, float x, float y, float rotation) static void
shadow
(TextureRegion region, float x, float y, float width, float height, float rotation) static void
spinSprite
(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
static void
static void
squareShadow
(float x, float y, float rad, float alpha) static void
static void
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)
-
Constructor Details
-
Drawf
public Drawf()
-
-
Method Details
-
checkBleed
Bleeds a mod pixmap if linear filtering is enabled. -
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
-
additive
-
additive
public static void additive(TextureRegion region, Color color, float x, float y, float rotation, float layer) -
additive
public static void additive(TextureRegion region, Color color, float alpha, float x, float y, float rotation, float layer) -
limitLine
-
dashLineDst
-
dashLine
-
dashLine
-
line
-
dashLineBasic
public static void dashLineBasic(float x, float y, float x2, float y2) -
dashSquare
-
dashRect
-
dashRect
-
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
-
target
-
text
public static float text()Sets Draw.z to the text layer, and returns the previous layer. -
light
-
light
-
light
-
light
public static void light(float x, float y, TextureRegion region, float rotation, 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, Color tint, float alpha) -
selected
-
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
-
shadow
-
shadow
public static void shadow(TextureRegion region, float x, float y, float width, float height, float rotation) -
liquid
public static void liquid(TextureRegion region, float x, float y, float alpha, Color color, float rotation) -
liquid
-
dashCircle
-
circles
public static void circles(float x, float y, float rad) -
circles
-
select
-
square
-
square
public static void square(float x, float y, float radius, float rotation) -
square
-
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, Color color) -
laser
public static void laser(TextureRegion line, TextureRegion edge, float x, float y, float x2, float y2) -
laser
public static void laser(TextureRegion line, TextureRegion start, TextureRegion end, float x, float y, float x2, float y2) -
laser
public static void laser(TextureRegion line, TextureRegion edge, float x, float y, float x2, float y2, float scale) -
laser
public static void laser(TextureRegion line, TextureRegion start, 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, TextureRegion region, float rotation, float progress, float alpha, float time) -
construct
public static void construct(float x, float y, TextureRegion region, Color color, float rotation, float progress, float alpha, float time) -
construct
public static void construct(mindustry.gen.Building t, TextureRegion region, float rotation, float progress, float alpha, float time) -
construct
public static void construct(mindustry.gen.Building t, TextureRegion region, Color color, float rotation, float progress, float alpha, float time) -
construct
public static void construct(mindustry.gen.Building t, TextureRegion region, Color color, float rotation, float progress, float alpha, float time, float size) -
spinSprite
Draws a sprite that should be light-wise correct, when rotated. Provided sprite must be symmetrical in shape.
-