Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 4e7512f

Browse files
committed
Merge branch 'tymii/remove-bytestream-from-assets' of https://github.com/cpp-gamedev/tkge into tymii/remove-bytestream-from-assets
2 parents 2cf97dd + 1724699 commit 4e7512f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/include/tkge/Assets/TextAsset.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace tkge::Assets
1414
this->_text = std::string{vData.begin(), vData.end()};
1515
}
1616

17-
[[nodiscard]] const std::string& text() const noexcept { return this->_text; }
17+
[[nodiscard]] const std::string& Text() const noexcept { return this->_text; }
1818

1919
private:
2020
std::string _text;

lib/src/engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace tkge
1212
_renderPass.set_color_target();
1313
// TEST
1414
const auto myTextDocument = this->GetAssetLoader().LoadAsset<tkge::Assets::TextAsset>("hello.txt");
15-
std::println("Document content = '{}'", myTextDocument->text());
15+
std::println("Document content = '{}'", myTextDocument->Text());
1616
}
1717

1818
glm::ivec2 Engine::FramebufferSize() const { return kvf::util::to_glm_vec<int>(_renderDevice.get_framebuffer_extent()); }

0 commit comments

Comments
 (0)