X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Fapp.cpp;h=0ec22b02c16607d189cda86107140d14ccde643f;hb=ab817024b3c02a54a376fa8f60b5046e51128ebb;hp=b3ae4780ec6c5147a315d227fb11aa66e0b89d5c;hpb=b795a1df619349d45c3b0ca73e61e68ff483221c;p=blobs.git diff --git a/src/app/app.cpp b/src/app/app.cpp index b3ae478..0ec22b0 100644 --- a/src/app/app.cpp +++ b/src/app/app.cpp @@ -173,8 +173,14 @@ void State::OnQuit() { Assets::Assets() : path("assets/") , data_path(path + "data/") +, font_path(path + "fonts/") , skin_path(path + "skins/") -, tile_path(path + "tiles/") { +, tile_path(path + "tiles/") +, fonts{ + graphics::Font(font_path + "DejaVuSans.ttf", 32), + graphics::Font(font_path + "DejaVuSans.ttf", 24), + graphics::Font(font_path + "DejaVuSans.ttf", 16) +} { { std::ifstream resource_file(data_path + "resources"); io::TokenStreamReader resource_reader(resource_file); @@ -187,6 +193,7 @@ Assets::Assets() ReadTileTypes(tile_reader); } + graphics::Format format; textures.tiles.Bind(); textures.tiles.Reserve(256, 256, 14, format);