22 #ifndef INCLUDED_CCONSOLE 23 #define INCLUDED_CCONSOLE 61 void Update(
const float deltaRealTime);
65 void InsertChar(
const int szChar,
const wchar_t cooked);
137 #endif // INCLUDED_CCONSOLE
size_t m_CharsPerPage
Definition: CConsole.h:84
void FlushBuffer()
Definition: CConsole.cpp:160
std::unique_ptr< wchar_t[]> m_Buffer
Definition: CConsole.h:100
int m_BufferPos
Definition: CConsole.h:101
bool m_Toggle
Definition: CConsole.h:108
void DrawHistory(CTextRenderer &textRenderer)
Definition: CConsole.cpp:243
void DrawCursor(CTextRenderer &textRenderer)
Definition: CConsole.cpp:298
void ShowQuitHotkeys()
Definition: CConsole.cpp:117
float m_X
Definition: CConsole.h:86
Definition: TextRenderer.h:33
const wchar_t * GetBuffer()
Definition: CConsole.cpp:557
std::deque< std::wstring > m_MsgHistory
Definition: CConsole.h:95
void ToggleVisible()
Definition: CConsole.cpp:133
std::mutex m_Mutex
Definition: CConsole.h:79
CConsole()
Definition: CConsole.cpp:60
int m_MsgHistPos
Definition: CConsole.h:98
int m_FontHeight
Definition: CConsole.h:81
double m_CursorBlinkRate
Definition: CConsole.h:112
Definition: Canvas2D.h:35
VfsPath m_HistoryFile
Definition: CConsole.h:104
float m_Height
Definition: CConsole.h:88
void Render(CCanvas2D &canvas)
Definition: CConsole.cpp:194
void InsertMessage(const std::string &message)
Definition: CConsole.cpp:515
float m_Y
Definition: CConsole.h:87
int m_BufferLength
Definition: CConsole.h:102
bool IsFull() const
Definition: CConsole.cpp:339
std::deque< std::wstring > m_BufHistory
Definition: CConsole.h:96
double m_PrevTime
Definition: CConsole.h:109
void ProcessBuffer(const wchar_t *szLine)
Definition: CConsole.cpp:575
void Update(const float deltaRealTime)
Definition: CConsole.cpp:167
bool IsEmpty() const
Definition: CConsole.cpp:344
void LoadHistory()
Definition: CConsole.cpp:596
int m_MaxHistoryLines
Definition: CConsole.h:105
bool IsActive() const
Definition: CConsole.h:75
void SaveHistory()
Definition: CConsole.cpp:627
void SetBuffer(const wchar_t *szMessage)
Definition: CConsole.cpp:563
bool IsBOB() const
Definition: CConsole.cpp:334
float m_Width
Definition: CConsole.h:89
CConsole * g_Console
Definition: CConsole.cpp:58
In-game console.
Definition: CConsole.h:43
float m_VisibleFrac
Definition: CConsole.h:93
void DrawBuffer(CTextRenderer &textRenderer)
Definition: CConsole.cpp:271
InReaction conInputHandler(const SDL_Event_ *ev)
Definition: CConsole.cpp:667
bool m_QuitHotkeyWasShown
Definition: CConsole.h:111
bool m_Visible
Definition: CConsole.h:107
void Init()
Definition: CConsole.cpp:85
void SetVisible(bool visible)
Definition: CConsole.cpp:148
int m_FontOffset
Definition: CConsole.h:83
void UpdateScreenSize(int w, int h)
Definition: CConsole.cpp:108
bool IsEOB() const
Definition: CConsole.cpp:329
void DrawWindow(CCanvas2D &canvas)
Definition: CConsole.cpp:215
void InsertChar(const int szChar, const wchar_t cooked)
Definition: CConsole.cpp:350
int m_FontWidth
Definition: CConsole.h:82
bool m_CursorVisState
Definition: CConsole.h:110