ASAPCabinetFE
 
Loading...
Searching...
No Matches
loading_screen.h
1#ifndef LOADING_SCREEN_H
2#define LOADING_SCREEN_H
3
4#include <memory>
5#include <string>
6#include <SDL2/SDL.h>
7#include "imgui.h"
8#include "loading_progress.h"
9
21public:
22 LoadingScreen(std::shared_ptr<LoadingProgress> progress);
23 void render();
24
25private:
26 std::shared_ptr<LoadingProgress> loadingProgress_;
27 // float lastTablesLoaded_ = 0.0f;
28 // float lastNumMatched_ = 0.0f;
29 static constexpr size_t maxThreads_ = 6;
30 static constexpr ImVec4 colorNeonCyan_ = ImVec4(0.0f, 1.0f, 1.0f, 1.0f);
31 static constexpr ImVec4 colorNeonMagenta_ = ImVec4(1.0f, 0.0f, 1.0f, 1.0f);
32 static constexpr ImVec4 colorNeonYellow_ = ImVec4(1.0f, 1.0f, 0.0f, 1.0f);
33 static constexpr ImVec4 colorDmdText_ = ImVec4(1.0f, 0.8f, 0.2f, 1.0f);
34 static constexpr ImVec4 colorTimelineNode_ = ImVec4(0.2f, 0.8f, 1.0f, 1.0f);
35 static constexpr ImVec4 colorThreadGreen_ = ImVec4(0.2f, 0.8f, 0.2f, 0.8f);
36
37 struct SystemInfo {
38 std::string kernel;
39 std::string cpuModel;
40 std::string totalRam;
41 } systemInfo_;
42
43 std::string getCommandOutput(const std::string& cmd);
44};
45
46#endif // LOADING_SCREEN_H
Manages the ImGui-based loading screen for ASAPCabinetFE initialization.
Definition loading_screen.h:20
Defines the LoadingProgress struct for tracking loading state in ASAPCabinetFE.