Package arc.graphics.g3d
Class PlaneBatch3D
java.lang.Object
arc.graphics.g2d.Batch
arc.graphics.g3d.PlaneBatch3D
- All Implemented Interfaces:
Disposable
A SpriteBatch that projects sprites onto a plane in 3D space.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final VertexBatch3D
protected final Vec3
protected final Vec3
protected float
protected final Vec3
protected final Vec3
protected final float[]
Fields inherited from class arc.graphics.g2d.Batch
apply, blending, color, colorPacked, combinedMatrix, customShader, idx, lastTexture, mesh, mixColor, mixColorPacked, ownsShader, projectionMatrix, shader, sortAscending, transformMatrix, z
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
draw
(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) protected void
protected void
flush()
void
void
Sets the plane that this batch projects sprites onto.void
setScaling
(float scaling) Sets scaling of sprite units.Methods inherited from class arc.graphics.g2d.Batch
dispose, draw, getBlending, getColor, getMixColor, getPackedColor, getPackedMixColor, getProjection, getShader, getTransform, setBlending, setColor, setColor, setMixColor, setMixColor, setPackedColor, setPackedMixColor, setProjection, setShader, setShader, setSort, setSortAscending, setTransform, setupMatrices, switchTexture, z
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
-
Field Details
-
up
-
right
-
origin
-
vec
-
batch
-
vertex
protected final float[] vertex -
scaling
protected float scaling
-
-
Constructor Details
-
PlaneBatch3D
public PlaneBatch3D() -
PlaneBatch3D
public PlaneBatch3D(int vertices)
-
-
Method Details
-
setScaling
public void setScaling(float scaling) Sets scaling of sprite units. -
setPlane
Sets the plane that this batch projects sprites onto. -
proj
-
flush
protected void flush() -
draw
protected void draw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation) -
draw
-