openglLogs.h 544 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <IconsForkAwesome.h>
  3. #include <imgui.h>
  4. #include <pikaImgui/pikaImgui.h>
  5. #include <unordered_map>
  6. namespace pika
  7. {
  8. struct OpenglLogsWindow
  9. {
  10. void init(pika::pikaImgui::ImGuiIdsManager &idManager);
  11. void update(bool &open);
  12. static constexpr char *ICON = ICON_FK_EXCLAMATION_TRIANGLE;
  13. static constexpr char *NAME = "opengl errors";
  14. static constexpr char *ICON_NAME = ICON_FK_EXCLAMATION_TRIANGLE " opengl errors";
  15. std::unordered_map<unsigned int, unsigned int> errorsReported;
  16. int imguiId = 0;
  17. };
  18. }