Class PlaneBatch3D

java.lang.Object
arc.graphics.g2d.Batch
arc.graphics.g3d.PlaneBatch3D
All Implemented Interfaces:
Disposable

public class PlaneBatch3D extends Batch
A SpriteBatch that projects sprites onto a plane in 3D space.
  • Field Details

    • up

      protected final Vec3 up
    • origin

      protected final Vec3 origin
    • vec

      protected final Vec3 vec
    • batch

      protected final VertexBatch3D 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

      public void setPlane(Vec3 origin, Vec3 up, Vec3 right)
      Sets the plane that this batch projects sprites onto.
    • proj

      public void proj(Mat3D mat)
    • flush

      protected void flush()
      Specified by:
      flush in class Batch
    • draw

      protected void draw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation)
      Specified by:
      draw in class Batch
    • draw

      protected void draw(Texture texture, float[] v, int offset, int count)
      Specified by:
      draw in class Batch