|
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) |
|
Color | getColor () |
|
void | setColor (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) |
|
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) |
|
Color | getAverageBrightColor () |
|
Definition at line 5 of file SpriteAPI.java.
◆ bindTexture()
void com.fs.starfarer.api.graphics.SpriteAPI.bindTexture |
( |
| ) |
|
◆ getAlphaMult()
float com.fs.starfarer.api.graphics.SpriteAPI.getAlphaMult |
( |
| ) |
|
◆ getAngle()
float com.fs.starfarer.api.graphics.SpriteAPI.getAngle |
( |
| ) |
|
◆ getAverageBrightColor()
Color com.fs.starfarer.api.graphics.SpriteAPI.getAverageBrightColor |
( |
| ) |
|
◆ getAverageColor()
Color com.fs.starfarer.api.graphics.SpriteAPI.getAverageColor |
( |
| ) |
|
◆ getCenterX()
float com.fs.starfarer.api.graphics.SpriteAPI.getCenterX |
( |
| ) |
|
◆ getCenterY()
float com.fs.starfarer.api.graphics.SpriteAPI.getCenterY |
( |
| ) |
|
◆ getColor()
Color com.fs.starfarer.api.graphics.SpriteAPI.getColor |
( |
| ) |
|
◆ getHeight()
float com.fs.starfarer.api.graphics.SpriteAPI.getHeight |
( |
| ) |
|
◆ getTextureHeight()
float com.fs.starfarer.api.graphics.SpriteAPI.getTextureHeight |
( |
| ) |
|
Fraction of the OpenGL texture's height taken up by the image. OpenGL textures have width and height that are powers of 2, the image may not.
- Returns
◆ getTextureId()
int com.fs.starfarer.api.graphics.SpriteAPI.getTextureId |
( |
| ) |
|
◆ getTextureWidth()
float com.fs.starfarer.api.graphics.SpriteAPI.getTextureWidth |
( |
| ) |
|
Fraction of the OpenGL texture's width taken up by the image. OpenGL textures have width and height that are powers of 2, the image may not.
- Returns
◆ getWidth()
float com.fs.starfarer.api.graphics.SpriteAPI.getWidth |
( |
| ) |
|
◆ render()
void com.fs.starfarer.api.graphics.SpriteAPI.render |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
◆ renderAtCenter()
void com.fs.starfarer.api.graphics.SpriteAPI.renderAtCenter |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
◆ renderRegion()
void com.fs.starfarer.api.graphics.SpriteAPI.renderRegion |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
tx, |
|
|
float |
ty, |
|
|
float |
tw, |
|
|
float |
th |
|
) |
| |
◆ renderRegionAtCenter()
void com.fs.starfarer.api.graphics.SpriteAPI.renderRegionAtCenter |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
tx, |
|
|
float |
ty, |
|
|
float |
tw, |
|
|
float |
th |
|
) |
| |
◆ renderWithCorners()
void com.fs.starfarer.api.graphics.SpriteAPI.renderWithCorners |
( |
float |
blX, |
|
|
float |
blY, |
|
|
float |
tlX, |
|
|
float |
tlY, |
|
|
float |
trX, |
|
|
float |
trY, |
|
|
float |
brX, |
|
|
float |
brY |
|
) |
| |
◆ setAdditiveBlend()
void com.fs.starfarer.api.graphics.SpriteAPI.setAdditiveBlend |
( |
| ) |
|
◆ setAlphaMult()
void com.fs.starfarer.api.graphics.SpriteAPI.setAlphaMult |
( |
float |
alphaMult | ) |
|
◆ setAngle()
void com.fs.starfarer.api.graphics.SpriteAPI.setAngle |
( |
float |
angle | ) |
|
◆ setBlendFunc()
void com.fs.starfarer.api.graphics.SpriteAPI.setBlendFunc |
( |
int |
src, |
|
|
int |
dest |
|
) |
| |
◆ setCenter()
void com.fs.starfarer.api.graphics.SpriteAPI.setCenter |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
◆ setCenterX()
void com.fs.starfarer.api.graphics.SpriteAPI.setCenterX |
( |
float |
cx | ) |
|
◆ setCenterY()
void com.fs.starfarer.api.graphics.SpriteAPI.setCenterY |
( |
float |
cy | ) |
|
◆ setColor()
void com.fs.starfarer.api.graphics.SpriteAPI.setColor |
( |
Color |
color | ) |
|
◆ setHeight()
void com.fs.starfarer.api.graphics.SpriteAPI.setHeight |
( |
float |
height | ) |
|
◆ setNormalBlend()
void com.fs.starfarer.api.graphics.SpriteAPI.setNormalBlend |
( |
| ) |
|
◆ setSize()
void com.fs.starfarer.api.graphics.SpriteAPI.setSize |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
◆ setTexHeight()
void com.fs.starfarer.api.graphics.SpriteAPI.setTexHeight |
( |
float |
texHeight | ) |
|
◆ setTexWidth()
void com.fs.starfarer.api.graphics.SpriteAPI.setTexWidth |
( |
float |
texWidth | ) |
|
◆ setTexX()
void com.fs.starfarer.api.graphics.SpriteAPI.setTexX |
( |
float |
texX | ) |
|
◆ setTexY()
void com.fs.starfarer.api.graphics.SpriteAPI.setTexY |
( |
float |
texY | ) |
|
◆ setWidth()
void com.fs.starfarer.api.graphics.SpriteAPI.setWidth |
( |
float |
width | ) |
|
The documentation for this interface was generated from the following file: