22 #ifndef INCLUDED_CCONSOLE
23 #define INCLUDED_CCONSOLE
40 #define CONSOLE_BUFFER_SIZE 1024 // for text being typed into the console
41 #define CONSOLE_MESSAGE_SIZE 1024 // for messages being printed into the console
43 #define CONSOLE_FONT L"mono-10"
60 void SetSize(
float X = 300,
float Y = 0,
float W = 800,
float H = 600);
71 void Update(
const float deltaRealTime);
76 void InsertChar(
const int szChar,
const wchar_t cooked);
128 void ToLower(
wchar_t* szMessage,
size_t iSize = 0);
129 void Trim(
wchar_t* szMessage,
const wchar_t cChar = 32,
size_t iSize = 0);
std::deque< std::wstring > m_deqBufHistory
void ReceivedChatMessage(const wchar_t *pSender, const wchar_t *szMessage)
void DrawHistory(CTextRenderer &textRenderer)
void DrawCursor(CTextRenderer &textRenderer)
A non-recursive mutual exclusion lock.
const wchar_t * GetBuffer()
void SetCursorBlinkRate(double rate)
void SetSize(float X=300, float Y=0, float W=800, float H=600)
void UseHistoryFile(const VfsPath &filename, int historysize)
void InsertMessageRaw(const CStrW &message)
std::deque< std::wstring > m_deqMsgHistory
void DrawWindow(CShaderProgramPtr &shader)
void ProcessBuffer(const wchar_t *szLine)
void Trim(wchar_t *szMessage, const wchar_t cChar=32, size_t iSize=0)
void Update(const float deltaRealTime)
#define WPRINTF_ARGS(fmtpos)
void SetBuffer(const wchar_t *szMessage)
#define CONSOLE_BUFFER_SIZE
void DrawBuffer(CTextRenderer &textRenderer)
void ToLower(wchar_t *szMessage, size_t iSize=0)
A compiled vertex+fragment shader program.
void SetVisible(bool visible)
shared_ptr< CShaderProgram > CShaderProgramPtr
void UpdateScreenSize(int w, int h)
void InsertMessage(const wchar_t *szMessage,...) WPRINTF_ARGS(2)
void InsertChar(const int szChar, const wchar_t cooked)
InReaction conInputHandler(const SDL_Event_ *ev)