2022-06-24から1日間の記事一覧
ImGuiを使っているとき、BeginComboの書き方をよく忘れるのでメモ。 基本は、BeginCombo()で始めて、Selectable()で項目追加、EndCombo()で終了。 std::vector<std::string> itemList; static const char* s_currentItem = nullptr; if (ImGui::BeginCombo("Combo", s_cur</std::string>…
ImGuiを使っているとき、BeginComboの書き方をよく忘れるのでメモ。 基本は、BeginCombo()で始めて、Selectable()で項目追加、EndCombo()で終了。 std::vector<std::string> itemList; static const char* s_currentItem = nullptr; if (ImGui::BeginCombo("Combo", s_cur</std::string>…