Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2023
2,041
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. // dear imgui: wrappers for the fmt library. See https://fmt.dev/
  2.  
  3. #pragma once
  4.  
  5. #include <string>
  6. #include <fmt/format.h>
  7. #include <utility>
  8.  
  9. namespace ImGui
  10. {
  11.     template <typename T, typename... Args>
  12.     IMGUI_API void  TextFmt(T&& fmt, const Args &... args) {
  13.         std::string str = fmt::format(std::forward<T>(fmt), args...);
  14.         ImGui::TextUnformatted(&*str.begin(), &*str.end());
  15.     }
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement