Function nanogui::utf8

Function Documentation

std::array<char, 8> nanogui::utf8(int c)

Convert a single UTF32 character code to UTF8.

NanoGUI uses this to convert the icon character codes defined in File entypo.h.

Parameters
  • c: The UTF32 character to be converted.