summaryrefslogtreecommitdiff
path: root/src/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.cpp')
-rw-r--r--src/font.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/font.cpp b/src/font.cpp
index 0a4ccbd..64728ee 100644
--- a/src/font.cpp
+++ b/src/font.cpp
@@ -7,6 +7,7 @@
#include "static-plane.hpp"
#include "vendor-stb-image-include.h"
#include "game-settings.hpp"
+
#include <vulkan/vulkan_core.h>
// TODO threading
@@ -312,7 +313,7 @@ void FontType_Tick(double delta) {
}
}
-void FontType_Serialize(std::ofstream &stream, FontType *ft) {
+void FontType_Serialize(std::ostream &stream, FontType *ft) {
FontTypeSpacing sp{};
FontTypeMSDFSettings msdf{};
memset(&sp, 0, sizeof(sp));
@@ -355,7 +356,7 @@ void FontType_Serialize(std::ofstream &stream, FontType *ft) {
AM_Release(ft->fontTextureAssetHandle);
}
-void FontType_Deserialize(std::ifstream &stream) {
+void FontType_Deserialize(std::istream &stream) {
uint64_t i;
NULL_CHAR_ARR(readLine, 128);
FontTypeSpacing sp{};