public class SpriteBatch
extends java.lang.Object
SpriteAPI
. All scaling is based on the state of the SpriteAPI
at the time of SpriteBatch
instantiation.Constructor and Description |
---|
SpriteBatch(com.fs.starfarer.api.graphics.SpriteAPI sprite) |
SpriteBatch(com.fs.starfarer.api.graphics.SpriteAPI sprite,
int blendSrc,
int blendDest) |
Modifier and Type | Method and Description |
---|---|
void |
add(float x,
float y,
float angle,
float size,
java.awt.Color color,
float alphaMod) |
void |
add(float x,
float y,
float angle,
float width,
float height,
java.awt.Color color,
float alphaMod) |
void |
clear() |
void |
draw() |
void |
finish() |
boolean |
isEmpty() |
int |
size() |
public SpriteBatch(com.fs.starfarer.api.graphics.SpriteAPI sprite)
public SpriteBatch(com.fs.starfarer.api.graphics.SpriteAPI sprite, int blendSrc, int blendDest)
public void add(float x, float y, float angle, float size, java.awt.Color color, float alphaMod)
public void add(float x, float y, float angle, float width, float height, java.awt.Color color, float alphaMod)
public int size()
public void clear()
public boolean isEmpty()
public void finish()
public void draw()