Enable loading fonts to GUI

This commit is contained in:
2021-03-10 23:54:40 +01:00
parent e0ae21a899
commit efa43f0eb0
8 changed files with 99 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
package com.bartlomiejpluta.base.api.game.gui;
import java.nio.ByteBuffer;
public interface Font {
String getName();
ByteBuffer getByteBuffer();
}

View File

@@ -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);
}