18 lines
230 B
C++
18 lines
230 B
C++
#pragma once
|
|
#include <imgui.h>
|
|
|
|
class EditorConsole
|
|
{
|
|
public:
|
|
EditorConsole();
|
|
~EditorConsole();
|
|
|
|
void Draw();
|
|
void AddLog(const char* fmt, ...);
|
|
|
|
private:
|
|
ImVector<char*> Items;
|
|
bool AutoScroll;
|
|
bool ScrollToBottom;
|
|
|
|
}; |