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

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

Introduction

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

The text is from its open source code.

Subclass

com.badlogic.gdx.graphics.g2d.SpriteBatch has subclasses.
Click this link to see all its subclasses.

Constructor

SpriteBatch()
Constructs a new SpriteBatch with a size of 1000, one buffer, and the default shader.
SpriteBatch(int size)
Constructs a SpriteBatch with one buffer and the default shader.
SpriteBatch(int size, ShaderProgram defaultShader)
Constructs a new SpriteBatch.

Method

voidbegin()
voiddisableBlending()
voiddispose()
voiddraw(Texture texture, float x, float y)
voiddraw(TextureRegion region, float x, float y)
voiddraw(Texture texture, float x, float y, float width, float height)
voiddraw(TextureRegion region, float x, float y, float width, float height)
voiddraw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)
voiddraw(Texture texture, float x, float y, float width, float height, int srcX, int srcY, int srcWidth, int srcHeight, boolean flipX, boolean flipY)
voiddraw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation, boolean clockwise)
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)
voiddraw(Texture texture, float x, float y, int srcX, int srcY, int srcWidth, int srcHeight)
voiddraw(Texture texture, float[] spriteVertices, int offset, int count)
voiddraw(TextureRegion region, float width, float height, Affine2 transform)
voidenableBlending()
voidend()
voidflush()
ColorgetColor()
Matrix4getProjectionMatrix()
Matrix4getTransformMatrix()
booleanisDrawing()
voidsetBlendFunction(int srcFunc, int dstFunc)
voidsetColor(Color tint)
voidsetColor(float color)
voidsetColor(float r, float g, float b, float a)
voidsetProjectionMatrix(Matrix4 projection)
voidsetShader(ShaderProgram shader)
voidsetTransformMatrix(Matrix4 transform)