2014-09-28 17:57:14 +02:00
|
|
|
#ifndef OPENMW_MWGUI_DEBUGWINDOW_H
|
|
|
|
#define OPENMW_MWGUI_DEBUGWINDOW_H
|
|
|
|
|
|
|
|
#include "windowbase.hpp"
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class DebugWindow : public WindowBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
DebugWindow();
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void onFrame(float dt) override;
|
2014-09-28 17:57:14 +02:00
|
|
|
|
2022-05-22 02:47:58 +02:00
|
|
|
static void startLogRecording();
|
|
|
|
|
2014-09-28 17:57:14 +02:00
|
|
|
private:
|
2022-05-08 22:43:30 +02:00
|
|
|
void updateLogView();
|
|
|
|
void updateBulletProfile();
|
|
|
|
|
2014-09-28 17:57:14 +02:00
|
|
|
MyGUI::TabControl* mTabControl;
|
|
|
|
|
2022-05-08 22:43:30 +02:00
|
|
|
MyGUI::EditBox* mLogView;
|
2022-05-22 02:47:58 +02:00
|
|
|
|
|
|
|
static std::vector<char> sLogCircularBuffer;
|
|
|
|
static int64_t sLogStartIndex;
|
|
|
|
static int64_t sLogEndIndex;
|
2022-05-08 22:43:30 +02:00
|
|
|
|
2014-09-28 17:57:14 +02:00
|
|
|
MyGUI::EditBox* mBulletProfilerEdit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|