Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // dear imgui: wrappers for the fmt library. See https://fmt.dev/
- #pragma once
- #include <string>
- #include <fmt/format.h>
- #include <utility>
- namespace ImGui
- {
- template <typename T, typename... Args>
- IMGUI_API void TextFmt(T&& fmt, const Args &... args) {
- std::string str = fmt::format(std::forward<T>(fmt), args...);
- ImGui::TextUnformatted(&*str.begin(), &*str.end());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement