summaryrefslogtreecommitdiff
path: root/src/font.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-03-20 15:56:35 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-03-21 11:06:05 -0400
commitcae76dd98e301a4560bb46ecb59b5952dff04149 (patch)
tree8e85d17234c6838fd24925889cd784296df56956 /src/font.cpp
parent9f036b05d36203465ca481f39d2cd51233e82b9e (diff)
pke: cleanup std stream usage
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{};