Enable loading fonts to GUI
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package com.bartlomiejpluta.base.api.game.gui;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
public interface Font {
|
||||
String getName();
|
||||
|
||||
ByteBuffer getByteBuffer();
|
||||
}
|
||||
@@ -14,5 +14,11 @@ public interface GUI extends Renderable, Disposable {
|
||||
|
||||
void fillColor(Color color);
|
||||
|
||||
void setFontFace(String fontUid);
|
||||
|
||||
void setFontSize(float size);
|
||||
|
||||
void putText(float x, float y, CharSequence text);
|
||||
|
||||
Color createColor(float red, float green, float blue, float alpha);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user