[add] Added FontSet which uses freetype.

This commit is contained in:
2019-10-13 00:00:00 +00:00
parent d429856776
commit 983625d8d9
7 changed files with 39 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import derelict.sfml2.audio,
derelict.sfml2.system,
derelict.sfml2.window;
import gl4d;
import gl4d, ft4d;
import sj.Args,
sj.Game,
@@ -62,6 +62,8 @@ private KeyInput GetKeyInput() {
}
private auto CreateWindow(ref in Args args) {
ft.Initialize();
DerelictSFML2Audio .load();
DerelictSFML2Graphics.load();
DerelictSFML2System .load();
@@ -93,6 +95,7 @@ private auto CreateWindow(ref in Args args) {
public:
~this() {
sfWindow_destroy(window_);
ft.Dispose();
}
void Flush() {
sfWindow_display(window_);