public class BillboardSpriteBatch extends Object implements com.badlogic.gdx.utils.Disposable
Wrapper over libgdx's included DecalBatch with automatic easy management of
Decal objects. This is intended to make "on the fly" rendering of decals/billboards
as easy as rendering 2D sprites is with SpriteBatch / DelayedSpriteBatch.
| Modifier and Type | Class and Description |
|---|---|
static class |
BillboardSpriteBatch.Type |
| Constructor and Description |
|---|
BillboardSpriteBatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin(com.badlogic.gdx.graphics.Camera camera) |
void |
dispose() |
void |
draw(BillboardSpriteBatch.Type type,
com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height) |
void |
draw(BillboardSpriteBatch.Type type,
com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height,
com.badlogic.gdx.graphics.Color tint) |
void |
draw(BillboardSpriteBatch.Type type,
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(BillboardSpriteBatch.Type type,
com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height,
float u,
float v,
float u2,
float v2,
com.badlogic.gdx.graphics.Color tint) |
void |
draw(BillboardSpriteBatch.Type type,
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(BillboardSpriteBatch.Type type,
com.badlogic.gdx.graphics.Texture texture,
float x,
float y,
float z,
float width,
float height,
int srcX,
int srcY,
int srcWidth,
int srcHeight,
com.badlogic.gdx.graphics.Color tint) |
void |
draw(BillboardSpriteBatch.Type type,
com.badlogic.gdx.graphics.g2d.TextureRegion region,
float x,
float y,
float z,
float width,
float height) |
void |
draw(BillboardSpriteBatch.Type type,
com.badlogic.gdx.graphics.g2d.TextureRegion region,
float x,
float y,
float z,
float width,
float height,
com.badlogic.gdx.graphics.Color tint) |
void |
end() |
void |
flush() |
public void begin(com.badlogic.gdx.graphics.Camera camera)
public void draw(BillboardSpriteBatch.Type type, com.badlogic.gdx.graphics.Texture texture, float x, float y, float z, float width, float height)
public void draw(BillboardSpriteBatch.Type type, com.badlogic.gdx.graphics.Texture texture, float x, float y, float z, float width, float height, com.badlogic.gdx.graphics.Color tint)
public void draw(BillboardSpriteBatch.Type type, 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(BillboardSpriteBatch.Type type, com.badlogic.gdx.graphics.Texture texture, float x, float y, float z, float width, float height, float u, float v, float u2, float v2, com.badlogic.gdx.graphics.Color tint)
public void draw(BillboardSpriteBatch.Type type, 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(BillboardSpriteBatch.Type type, com.badlogic.gdx.graphics.Texture texture, float x, float y, float z, float width, float height, int srcX, int srcY, int srcWidth, int srcHeight, com.badlogic.gdx.graphics.Color tint)
public void draw(BillboardSpriteBatch.Type type, com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float z, float width, float height)
public void draw(BillboardSpriteBatch.Type type, com.badlogic.gdx.graphics.g2d.TextureRegion region, float x, float y, float z, float width, float height, com.badlogic.gdx.graphics.Color tint)
public void flush()
public void end()
public void dispose()
dispose in interface com.badlogic.gdx.utils.DisposableCopyright © 2022. All rights reserved.