Starsector API
Loading...
Searching...
No Matches
SpriteAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.graphics;
2
3import java.awt.Color;
4
5public interface SpriteAPI {
6
7 void setBlendFunc(int src, int dest);
10 void setCenter(float x, float y);
11 void setSize(float width, float height);
12 float getAngle();
13 void setAngle(float angle);
14
15 Color getColor();
16 void setColor(Color color);
17 void setHeight(float height);
18 void setWidth(float width);
19 float getHeight();
20 float getWidth();
23
24 void renderAtCenter(float x, float y);
25 void render(float x, float y);
26 void renderRegionAtCenter(float x, float y, float tx, float ty, float tw, float th);
27 void renderRegion(float x, float y, float tx, float ty, float tw, float th);
28
29 float getCenterX();
30 float getCenterY();
31
32 float getAlphaMult();
33 void setAlphaMult(float alphaMult);
34
35
42
49
50
51 void setCenterY(float cy);
52 void setCenterX(float cx);
53
55
56 void setTexX(float texX);
57 void setTexY(float texY);
58 void setTexWidth(float texWidth);
59 void setTexHeight(float texHeight);
60 void renderWithCorners(float blX, float blY, float tlX, float tlY, float trX, float trY, float brX, float brY);
62}
void setSize(float width, float height)
void renderRegionAtCenter(float x, float y, float tx, float ty, float tw, float th)
void setBlendFunc(int src, int dest)
void renderAtCenter(float x, float y)
void renderRegion(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)