Java com.badlogic.gdx.graphics.g2d Batch fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics.g2d Batch fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics.g2d Batch.

The text is from its open source code.

Implementation

com.badlogic.gdx.graphics.g2d.Batch has the following implementations.
Click this link to see all its implementation.

Method

voidbegin()
Sets up the Batch for drawing.
voiddisableBlending()
Disables blending for drawing sprites.
voiddraw(Texture texture, float x, float y, float width, float height)
Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.
voiddraw(TextureRegion region, float x, float y, float width, float height)
Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.
voiddraw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)
Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height.
voiddraw(Texture texture, float x, float y, float width, float height, float u, float v, float u2, float v2)
Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.
voiddraw(Texture texture, float x, float y)
Draws a rectangle with the bottom left corner at x,y having the width and height of the texture.
voiddraw(TextureRegion region, float x, float y)
Draws a rectangle with the bottom left corner at x,y having the width and height of the region.
voiddraw(Texture texture, float[] spriteVertices, int offset, int count)
Draws a rectangle using the given vertices.
voiddraw(TextureRegion region, float width, float height, Affine2 transform)
Draws a rectangle transformed by the given matrix.
voiddraw(Texture texture, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation, int srcX, int srcY, int srcWidth, int srcHeight, boolean flipX, boolean flipY)
Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.
voiddraw(Texture texture, float x, float y, float width, float height, int srcX, int srcY, int srcWidth, int srcHeight, boolean flipX, boolean flipY)
Draws a rectangle with the bottom left corner at x,y having the given width and height in pixels.
voiddraw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation, boolean clockwise)
Draws a rectangle with the texture coordinates rotated 90 degrees.
voidenableBlending()
Enables blending for drawing sprites.
voidend()
Finishes off rendering.
voidflush()
Causes any pending sprites to be rendered, without ending the Batch.
intgetBlendDstFunc()
intgetBlendSrcFunc()
ColorgetColor()
Matrix4getProjectionMatrix()
Returns the current projection matrix.
Matrix4getTransformMatrix()
Returns the current transform matrix.
voidsetBlendFunction(int srcFunc, int dstFunc)
Sets the blending function to be used when rendering sprites.
voidsetColor(Color tint)
Sets the color used to tint images when they are added to the Batch.
voidsetColor(float color)
voidsetColor(float r, float g, float b, float a)
voidsetProjectionMatrix(Matrix4 projection)
Sets the projection matrix to be used by this Batch.
voidsetShader(ShaderProgram shader)
Sets the shader to be used in a GLES 2.0 environment.
voidsetTransformMatrix(Matrix4 transform)
Sets the transform matrix to be used by this Batch.