34 bool Initialize(HWND hwnd, ID3D11Device* device, ID3D11DeviceContext* deviceContext);
38 void SetupDockspace();
41 void WidgetSpeedSlider(
float* speed);
44 void WidgetAddObject();
46 void WidgetObjectWindow();
47 void WidgetTerrainWindow();
48 void WidgetLightWindow();
49 void WidgetEngineSettingsWindow();
50 void WidgetRenderWindow(ImVec2 availableSize);
51 void WidgetLogWindow();
52 void WidgetRenderStats();
54 bool ImGuiWidgetRenderer();
56 void SetWindowSize(ImVec2 size) { windowSize = size; }
57 ImVec2 GetWindowSize()
const {
return windowSize; }
60 void SetApp(std::shared_ptr<application_class> app) { app_ = app; }
64 bool m_EnableCelShading;
76 std::vector<widget_entry> widgets_;
78 std::shared_ptr<application_class> app_;
82 bool showObjectWindow;
83 bool showTerrainWindow;
85 bool showOldSceneWindow;
86 bool showEngineSettingsWindow;
92 static const int FRAME_HISTORY_COUNT = 3600;
93 float m_frameTimeHistory[FRAME_HISTORY_COUNT] = {};
94 int m_frameTimeHistoryIndex = 0;
96 bool m_isPhyiscsEnabled =
false;
97 bool m_isGravityEnabled =
false;
101 ID3D11Device* m_device;
102 ID3D11DeviceContext* m_deviceContext;
107 const std::deque<Logger::LogEntry>& logBuffer = Logger::Get().GetLogBuffer();
109 int current_fps_, min_fps_, max_fps_, draw_calls_, visible_triangle_count_;
110 float current_frame_time_, min_frame_time_, max_frame_time_ ;
112 std::shared_ptr<int> total_vertex_count_;
113 std::shared_ptr<int> total_triangle_count_;
116 char card_name_[128];
117 int video_memory_ = 0;
120 std::string cpu_name_;
121 std::string version_driver_;