Add support for GUI image flags

This commit is contained in:
2021-03-14 23:21:12 +01:00
parent 3aac855fea
commit 449278b3cf
2 changed files with 39 additions and 7 deletions

View File

@@ -13,6 +13,13 @@ public interface GUI extends Renderable, Disposable, KeyEventHandler {
int ALIGN_BOTTOM = 1 << 5;
int ALIGN_BASELINE = 1 << 6;
int IMAGE_GENERATE_MIPMAPS = 1 << 0;
int IMAGE_REPEAT_X = 1 << 1;
int IMAGE_REPEAT_Y = 1 << 2;
int IMAGE_FLIP_Y = 1 << 3;
int IMAGE_PREMULTIPLIED = 1 << 4;
int IMAGE_NEAREST = 1 << 5;
Widget getRoot();
void setRoot(Widget root);
@@ -23,6 +30,8 @@ public interface GUI extends Renderable, Disposable, KeyEventHandler {
Image getImage(String imageUid);
Image getImage(String imageUid, int imageFlags);
void beginPath();
void closePath();
@@ -93,6 +102,8 @@ public interface GUI extends Renderable, Disposable, KeyEventHandler {
void radialGradient(float x, float y, float innerRadius, float outerRadius, Color start, Color end, Paint target);
void imagePattern(float x, float y, float angle, float alpha, Image image, Paint target);
void imagePattern(float x, float y, float width, float height, float angle, float alpha, Image image, Paint target);
void clip(float x, float y, float width, float height);