ゲームが作れるようになるまでがんばる日記

ゲーム制作のことを中心にゲームに関することを書いています

2022-06-24から1日間の記事一覧

ImGuiのBeginCombo

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