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.
void CConsole::FlushBuffer |
( |
| ) |
|
const wchar_t * CConsole::GetBuffer |
( |
| ) |
|
void CConsole::InsertChar |
( |
const int |
szChar, |
|
|
const wchar_t |
cooked |
|
) |
| |
void CConsole::InsertMessage |
( |
const std::string & |
message | ) |
|
bool CConsole::IsActive |
( |
| ) |
|
|
inline |
bool CConsole::IsEmpty |
( |
| ) |
|
|
inlineprivate |
bool CConsole::IsFull |
( |
| ) |
|
|
inlineprivate |
void CConsole::LoadHistory |
( |
| ) |
|
|
private |
void CConsole::ProcessBuffer |
( |
const wchar_t * |
szLine | ) |
|
|
private |
void CConsole::Render |
( |
| ) |
|
void CConsole::SaveHistory |
( |
| ) |
|
|
private |
void CConsole::SetBuffer |
( |
const wchar_t * |
szMessage | ) |
|
void CConsole::SetCursorBlinkRate |
( |
double |
rate | ) |
|
void CConsole::SetSize |
( |
float |
X = 300 , |
|
|
float |
Y = 0 , |
|
|
float |
W = 800 , |
|
|
float |
H = 600 |
|
) |
| |
void CConsole::SetVisible |
( |
bool |
visible | ) |
|
void CConsole::ToggleVisible |
( |
| ) |
|
void CConsole::Update |
( |
const float |
deltaRealTime | ) |
|
- Parameters
-
deltaRealTime | Elapsed real time since the last frame. |
void CConsole::UpdateScreenSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
void CConsole::UseHistoryFile |
( |
const VfsPath & |
filename, |
|
|
int |
historysize |
|
) |
| |
bool CConsole::m_bCursorVisState |
|
private |
bool CConsole::m_bVisible |
|
private |
size_t CConsole::m_charsPerPage |
double CConsole::m_cursorBlinkRate |
|
private |
std::deque<std::wstring> CConsole::m_deqBufHistory |
|
private |
std::deque<std::wstring> CConsole::m_deqMsgHistory |
|
private |
float CConsole::m_fHeight |
|
private |
float CConsole::m_fVisibleFrac |
|
private |
int CConsole::m_iBufferLength |
|
private |
int CConsole::m_iBufferPos |
|
private |
int CConsole::m_iFontHeight |
int CConsole::m_iFontOffset |
int CConsole::m_iFontWidth |
int CConsole::m_iMsgHistPos |
|
private |
int CConsole::m_MaxHistoryLines |
|
private |
double CConsole::m_prevTime |
|
private |
The documentation for this class was generated from the following files: