public class ExtendedSpriteBatch
extends com.badlogic.gdx.graphics.g2d.SpriteBatch
SpriteBatch.draw(com.badlogic.gdx.graphics.Texture, float, float, float, float, float, float, float, float, float, int, int, int, int, boolean, boolean) methods mostly for convenience. Most of these additional overloads
are to make drawing sprites at projected screen coordinates easier.
For correct use of viewport pixel scaling and for projected screen coordinate sprite rendering to work at all,
you must use the begin(ViewportContext) overload instead of begin().| Constructor and Description |
|---|
ExtendedSpriteBatch() |
ExtendedSpriteBatch(int size) |
ExtendedSpriteBatch(int size,
com.badlogic.gdx.graphics.glutils.ShaderProgram defaultShader) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
begin(ViewportContext viewportContext) |
void |
draw(com.badlogic.gdx.graphics.g2d.BitmapFont font,
float x,
float y,
CharSequence str) |
void |
draw(com.badlogic.gdx.graphics.g2d.BitmapFont font,
float x,
float y,
CharSequence str,
float scale) |
void |
draw(com.badlogic.gdx.graphics.g2d.BitmapFont font,
float x,
float y,
float z,
CharSequence str) |
void |
draw(com.badlogic.gdx.graphics.g2d.BitmapFont font,
float x,
float y,
float z,
CharSequence str,
float scale) |
void |
draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z) |
void |
draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height) |
void |
draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height,
float u,
float v,
float u2,
float v2) |
void |
draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height,
int srcX,
int srcY,
int srcWidth,
int srcHeight) |
void |
draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
int srcX,
int srcY,
int srcWidth,
int srcHeight) |
void |
draw(com.badlogic.gdx.graphics.g2d.TextureRegion region,
float x,
float y,
float z) |
void |
draw(com.badlogic.gdx.graphics.g2d.TextureRegion region,
float x,
float y,
float z,
float width,
float height) |
void |
end() |
createDefaultShader, disableBlending, dispose, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, enableBlending, flush, getBlendDstFunc, getBlendSrcFunc, getColor, getProjectionMatrix, getTransformMatrix, isBlendingEnabled, isDrawing, setBlendFunction, setColor, setColor, setColor, setProjectionMatrix, setShader, setTransformMatrixpublic ExtendedSpriteBatch()
public ExtendedSpriteBatch(int size)
public ExtendedSpriteBatch(int size,
com.badlogic.gdx.graphics.glutils.ShaderProgram defaultShader)
public void begin()
begin in interface com.badlogic.gdx.graphics.g2d.Batchbegin in class com.badlogic.gdx.graphics.g2d.SpriteBatchpublic void begin(ViewportContext viewportContext)
public void end()
end in interface com.badlogic.gdx.graphics.g2d.Batchend in class com.badlogic.gdx.graphics.g2d.SpriteBatchpublic void draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z)
public void draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height)
public void draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height,
float u,
float v,
float u2,
float v2)
public void draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
int srcX,
int srcY,
int srcWidth,
int srcHeight)
public void draw(com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height,
int srcX,
int srcY,
int srcWidth,
int srcHeight)
public void draw(com.badlogic.gdx.graphics.g2d.TextureRegion region,
float x,
float y,
float z)
public void draw(com.badlogic.gdx.graphics.g2d.TextureRegion region,
float x,
float y,
float z,
float width,
float height)
public void draw(com.badlogic.gdx.graphics.g2d.BitmapFont font,
float x,
float y,
CharSequence str)
public void draw(com.badlogic.gdx.graphics.g2d.BitmapFont font,
float x,
float y,
CharSequence str,
float scale)
public void draw(com.badlogic.gdx.graphics.g2d.BitmapFont font,
float x,
float y,
float z,
CharSequence str)
public void draw(com.badlogic.gdx.graphics.g2d.BitmapFont font,
float x,
float y,
float z,
CharSequence str,
float scale)
Copyright © 2022. All rights reserved.