Interface PolygonBatch

  • All Superinterfaces:
    Batch, Disposable
    All Known Implementing Classes:
    PolygonSpriteBatch

    public interface PolygonBatch
    extends Batch
    A PolygonBatch is an extension of the Batch interface that provides additional render methods specifically for rendering polygons.
    • Method Detail

      • draw

        void draw​(PolygonRegion region,
                  float x,
                  float y)
        Draws a polygon region with the bottom left corner at x,y having the width and height of the region.
      • draw

        void draw​(PolygonRegion region,
                  float x,
                  float y,
                  float width,
                  float height)
        Draws a polygon region with the bottom left corner at x,y and stretching the region to cover the given width and height.
      • draw

        void draw​(PolygonRegion region,
                  float x,
                  float y,
                  float originX,
                  float originY,
                  float width,
                  float height,
                  float scaleX,
                  float scaleY,
                  float rotation)
        Draws the polygon region with the bottom left corner at x,y and stretching the region to cover the given width and height. The polygon region is offset by originX, originY relative to the origin. Scale specifies the scaling factor by which the polygon region should be scaled around originX, originY. Rotation specifies the angle of counter clockwise rotation of the rectangle around originX, originY.
      • draw

        void draw​(Texture texture,
                  float[] polygonVertices,
                  int verticesOffset,
                  int verticesCount,
                  short[] polygonTriangles,
                  int trianglesOffset,
                  int trianglesCount)
        Draws the polygon using the given vertices and triangles. Each vertices must be made up of 5 elements in this order: x, y, color, u, v.