public interface SpriteAPI
| Modifier and Type | Method and Description |
|---|---|
void |
bindTexture() |
float |
getAlphaMult() |
float |
getAngle() |
java.awt.Color |
getAverageBrightColor() |
java.awt.Color |
getAverageColor() |
int |
getBlendDest() |
int |
getBlendSrc() |
float |
getCenterX() |
float |
getCenterY() |
java.awt.Color |
getColor() |
float |
getHeight() |
float |
getTexHeight() |
float |
getTextureHeight()
Fraction of the OpenGL texture's height taken up by the image.
|
int |
getTextureId() |
float |
getTextureWidth()
Fraction of the OpenGL texture's width taken up by the image.
|
float |
getTexWidth() |
float |
getTexX() |
float |
getTexY() |
float |
getWidth() |
void |
render(float x,
float y) |
void |
renderAtCenter(float x,
float y) |
void |
renderAtCenterNoBind(float x,
float y) |
void |
renderNoBind(float x,
float y) |
void |
renderRegion(float x,
float y,
float tx,
float ty,
float tw,
float th) |
void |
renderRegionAtCenter(float x,
float y,
float tx,
float ty,
float tw,
float th) |
void |
renderWithCorners(float blX,
float blY,
float tlX,
float tlY,
float trX,
float trY,
float brX,
float brY) |
void |
setAdditiveBlend() |
void |
setAlphaMult(float alphaMult) |
void |
setAngle(float angle) |
void |
setBlendFunc(int src,
int dest) |
void |
setCenter(float x,
float y) |
void |
setCenterX(float cx) |
void |
setCenterY(float cy) |
void |
setColor(java.awt.Color color) |
void |
setHeight(float height) |
void |
setNormalBlend() |
void |
setSize(float width,
float height) |
void |
setTexHeight(float texHeight) |
void |
setTexWidth(float texWidth) |
void |
setTexX(float texX) |
void |
setTexY(float texY) |
void |
setWidth(float width) |
void setBlendFunc(int src, int dest)
void setNormalBlend()
void setAdditiveBlend()
void setCenter(float x, float y)
void setSize(float width, float height)
float getAngle()
void setAngle(float angle)
java.awt.Color getColor()
void setColor(java.awt.Color color)
void setHeight(float height)
void setWidth(float width)
float getHeight()
float getWidth()
void bindTexture()
int getTextureId()
void renderAtCenter(float x, float y)
void render(float x, float y)
void renderRegionAtCenter(float x, float y, float tx, float ty, float tw, float th)
void renderRegion(float x, float y, float tx, float ty, float tw, float th)
float getCenterX()
float getCenterY()
float getAlphaMult()
void setAlphaMult(float alphaMult)
float getTextureWidth()
float getTextureHeight()
void setCenterY(float cy)
void setCenterX(float cx)
java.awt.Color getAverageColor()
void setTexX(float texX)
void setTexY(float texY)
void setTexWidth(float texWidth)
void setTexHeight(float texHeight)
void renderWithCorners(float blX, float blY, float tlX, float tlY, float trX, float trY, float brX, float brY)
java.awt.Color getAverageBrightColor()
void renderNoBind(float x, float y)
void renderAtCenterNoBind(float x, float y)
int getBlendDest()
int getBlendSrc()
float getTexX()
float getTexY()
float getTexWidth()
float getTexHeight()