In-game console.
More...
#include <CConsole.h>
In-game console.
Thread-safety:
- Expected to be constructed/destructed in the main thread.
- InsertMessage may be called from any thread while the object is alive.
◆ CConsole()
◆ ~CConsole()
◆ DrawBuffer()
◆ DrawCursor()
◆ DrawHistory()
◆ DrawWindow()
void CConsole::DrawWindow |
( |
CCanvas2D & |
canvas | ) |
|
|
private |
◆ FlushBuffer()
void CConsole::FlushBuffer |
( |
| ) |
|
◆ GetBuffer()
const wchar_t * CConsole::GetBuffer |
( |
| ) |
|
◆ Init()
◆ InsertChar()
void CConsole::InsertChar |
( |
const int |
szChar, |
|
|
const wchar_t |
cooked |
|
) |
| |
◆ InsertMessage()
void CConsole::InsertMessage |
( |
const std::string & |
message | ) |
|
◆ IsActive()
bool CConsole::IsActive |
( |
| ) |
const |
|
inline |
◆ IsBOB()
bool CConsole::IsBOB |
( |
| ) |
const |
|
private |
◆ IsEmpty()
bool CConsole::IsEmpty |
( |
| ) |
const |
|
private |
◆ IsEOB()
bool CConsole::IsEOB |
( |
| ) |
const |
|
private |
◆ IsFull()
bool CConsole::IsFull |
( |
| ) |
const |
|
private |
◆ LoadHistory()
void CConsole::LoadHistory |
( |
| ) |
|
|
private |
◆ NONCOPYABLE()
◆ ProcessBuffer()
void CConsole::ProcessBuffer |
( |
const wchar_t * |
szLine | ) |
|
|
private |
◆ Render()
◆ SaveHistory()
void CConsole::SaveHistory |
( |
| ) |
|
|
private |
◆ SetBuffer()
void CConsole::SetBuffer |
( |
const wchar_t * |
szMessage | ) |
|
◆ SetVisible()
void CConsole::SetVisible |
( |
bool |
visible | ) |
|
◆ ShowQuitHotkeys()
void CConsole::ShowQuitHotkeys |
( |
| ) |
|
|
private |
◆ ToggleVisible()
void CConsole::ToggleVisible |
( |
| ) |
|
◆ Update()
void CConsole::Update |
( |
const float |
deltaRealTime | ) |
|
- Parameters
-
deltaRealTime | Elapsed real time since the last frame. |
◆ UpdateScreenSize()
void CConsole::UpdateScreenSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
◆ m_Buffer
std::unique_ptr<wchar_t[]> CConsole::m_Buffer |
|
private |
◆ m_BufferLength
int CConsole::m_BufferLength |
|
private |
◆ m_BufferPos
int CConsole::m_BufferPos |
|
private |
◆ m_BufHistory
std::deque<std::wstring> CConsole::m_BufHistory |
|
private |
◆ m_CharsPerPage
size_t CConsole::m_CharsPerPage |
|
private |
◆ m_CursorBlinkRate
double CConsole::m_CursorBlinkRate |
|
private |
◆ m_CursorVisState
bool CConsole::m_CursorVisState |
|
private |
◆ m_FontHeight
int CConsole::m_FontHeight |
|
private |
◆ m_FontOffset
int CConsole::m_FontOffset |
|
private |
◆ m_FontWidth
int CConsole::m_FontWidth |
|
private |
◆ m_Height
◆ m_HistoryFile
◆ m_MaxHistoryLines
int CConsole::m_MaxHistoryLines |
|
private |
◆ m_MsgHistory
std::deque<std::wstring> CConsole::m_MsgHistory |
|
private |
◆ m_MsgHistPos
int CConsole::m_MsgHistPos |
|
private |
◆ m_Mutex
std::mutex CConsole::m_Mutex |
|
private |
◆ m_PrevTime
double CConsole::m_PrevTime |
|
private |
◆ m_QuitHotkeyWasShown
bool CConsole::m_QuitHotkeyWasShown |
|
private |
◆ m_Toggle
◆ m_Visible
◆ m_VisibleFrac
float CConsole::m_VisibleFrac |
|
private |
◆ m_Width
◆ m_X
◆ m_Y
The documentation for this class was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/ps/CConsole.h
- /home/docker/jenkins/workspace/technical-docs/source/ps/CConsole.cpp