Package com.badlogic.gdx.graphics.g2d
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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.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.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.-
Methods inherited from interface com.badlogic.gdx.graphics.g2d.Batch
begin, disableBlending, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, enableBlending, end, flush, getBlendDstFunc, getBlendDstFuncAlpha, getBlendSrcFunc, getBlendSrcFuncAlpha, getColor, getPackedColor, getProjectionMatrix, getShader, getTransformMatrix, isBlendingEnabled, isDrawing, setBlendFunction, setBlendFunctionSeparate, setColor, setColor, setPackedColor, setProjectionMatrix, setShader, setTransformMatrix
-
Methods inherited from interface com.badlogic.gdx.utils.Disposable
dispose
-
-
-
-
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.
-
-