public class ShapeUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static com.badlogic.gdx.graphics.g2d.TextureRegion |
region |
static float |
thickness |
| Constructor and Description |
|---|
ShapeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
line(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float x2,
float y2) |
static void |
polygon(com.badlogic.gdx.graphics.g2d.Batch batch,
float[] vertices,
float offsetx,
float offsety,
float scl) |
static void |
polygon(com.badlogic.gdx.graphics.g2d.Batch batch,
com.badlogic.gdx.math.Vector2[] vertices,
float offsetx,
float offsety,
float scl) |
static void |
rect(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height,
int thickness) |
static void |
rect(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height,
int thickness,
int space) |
static void |
rect(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height,
int thickness,
int xspace,
int yspace) |
public static com.badlogic.gdx.graphics.g2d.TextureRegion region
public static float thickness
public static void polygon(com.badlogic.gdx.graphics.g2d.Batch batch,
com.badlogic.gdx.math.Vector2[] vertices,
float offsetx,
float offsety,
float scl)
public static void polygon(com.badlogic.gdx.graphics.g2d.Batch batch,
float[] vertices,
float offsetx,
float offsety,
float scl)
public static void line(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float x2,
float y2)
public static void rect(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height,
int thickness)
public static void rect(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height,
int thickness,
int space)
public static void rect(com.badlogic.gdx.graphics.g2d.Batch batch,
float x,
float y,
float width,
float height,
int thickness,
int xspace,
int yspace)