51 bool Initialize(HWND hwnd, ID3D11Device* device, ID3D11DeviceContext* deviceContext);
142 void SetApp(std::shared_ptr<application_class> app) { app_ = app; }
146 bool m_EnableCelShading;
158 std::vector<widget_entry> widgets_;
160 std::shared_ptr<application_class> app_;
164 bool showObjectWindow;
165 bool showTerrainWindow;
166 bool showLightWindow;
167 bool showOldSceneWindow;
168 bool showEngineSettingsWindow;
170 bool showStatsWindow;
174 static const int FRAME_HISTORY_COUNT = 3600;
175 float m_frameTimeHistory[FRAME_HISTORY_COUNT] = {};
176 int m_frameTimeHistoryIndex = 0;
178 bool m_isPhyiscsEnabled =
false;
179 bool m_isGravityEnabled =
false;
183 ID3D11Device* m_device;
184 ID3D11DeviceContext* m_deviceContext;
191 int current_fps_, min_fps_, max_fps_, draw_calls_, visible_triangle_count_;
192 float current_frame_time_, min_frame_time_, max_frame_time_ ;
194 std::shared_ptr<int> total_vertex_count_;
195 std::shared_ptr<int> total_triangle_count_;
198 char card_name_[128];
199 int video_memory_ = 0;
202 std::string cpu_name_;
203 std::string version_driver_;