#include <console.h>
Inheritance diagram for Console:


A console is also a log sink that you can attach to a log source to get log messages printed in the console. Example:
neolog.AttachSink( Core::Get()->GetConsole() );This will attach the core console object as a log sink to the global neolog log source.For an example on how to use the command callbacks, look at the documentation for the ConsoleCmdCallback class.
Public Types | |
| enum | CONSOLEDEFS { DEFAULTHISTORY = 200 } |
Public Member Functions | |
| Console (unsigned int uiHistory=DEFAULTHISTORY) | |
| virtual | ~Console () |
| virtual bool | Render (Frustum *pkFrustum=0, bool bForce=false) |
| void | SetFont (FontPtr pkFont) |
| const FontPtr & | GetFont () const |
| virtual void | Input (const InputEvent *pkEvent) |
| virtual void | Write (const std::string &rstrMsg) |
| bool | RegisterCommand (const HashString &rstrCmd, ConsoleCmdCallback *pkCallback) |
| void | RegisterDefaultCallback (ConsoleCmdCallback *pkCallback) |
| void | SetDimensions (int iX=0, int iY=0, int iWidth=-1, int iHeight=-1) |
| void | DeleteBuffers () |
| void | Clear () |
| bool | IsActive () const |
| virtual void | Activate () |
| virtual void | Deactivate () |
| bool | Toggle () |
| void | AttachToGroup (InputGroup *pkGroup) |
| void | SetLogThreshold (unsigned int uiLevel) |
Static Public Member Functions | |
| void | LoadDefaultFont () |
| FontPtr | GetDefaultFont () |
| void | UnloadDefaultFont () |
Public Attributes | |
| unsigned int | m_uiLastFrame |
Static Public Attributes | |
| unsigned int | s_uiFrameCount |
Protected Member Functions | |
| virtual bool | ProcessCmd (const std::string &rstrCmd) |
Protected Attributes | |
| std::vector< std::string > | m_vstrHistory |
| FontPtr | m_pkFont |
| std::string | m_strCmd |
| std::vector< ConsoleCmd * > | m_vpkCommands |
| int | m_iX |
| int | m_iY |
| int | m_iWidth |
| int | m_iHeight |
| ConsoleCmdCallback * | m_pkDefaultCallback |
| VertexBufferPtr | m_pkVertexBuffer |
| PolygonBufferPtr | m_pkPolygonBuffer |
| MaterialPtr | m_pkMaterial |
| unsigned int | m_uiHistory |
| bool | m_bActive |
| InputGroup * | m_pkGroup |
| unsigned int | m_uiThreshold |
Static Protected Attributes | |
| FontPtr | s_pkDefaultFont |
|
|
Console defines and default values |
|
|
|
|
|
Deallocate memory |
|
|
Process command entered in console
|
|
||||||||||||
|
Render object
Reimplemented from RenderEntity. |
|
|
Set font
|
|
|
|
|
|
Process input
Implements InputEntity. |
|
|
Write log sink data to console
Implements LogSink. |
|
||||||||||||
|
Register new command
|
|
|
Register default callback (not deleted)
|
|
||||||||||||||||||||
|
Set position and dimensions of console "window". All arguments are in pixels
|
|
|
Delete buffers. Only for internal use |
|
|
Clear the console history |
|
|
Load default font |
|
|
Get default console font. Will load font if not previously loaded
|
|
|
Unload default font |
|
|
Query state of object
|
|
|
Activate object |
|
|
Deactivate object |
|
|
Toggle active state. This method does not need to be overloaded, it is only a wrapper to Activate and Deactivate
|
|
|
Attach to an input group (will detach from any current group)
|
|
|
Set the threshold of loglevel
|
|
|
Messages |
|
|
|
Current command |
|
|
Registered commands |
|
|
x coordinate |
|
|
y coordinate |
|
|
Width |
|
|
Height |
|
|
Default callback object |
|
|
Vertex buffer |
|
|
Polygon buffer |
|
|
|
History length |
|
|
Default console font |
|
|
Frame counter (at 500 frames per second, can be active ~100 days continously before loop, and then it will just skip one frame -> safe enough) |
|
|
Last frame count we were rendered |
|
|
Active flag |
|
|
Input group we belong to |
|
|
Loglevel threshold |
1.3.5