Add support for GUI image flags
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user