Wraith
0.1.5
Basic 3D game engine in C++
|
A screen log used for writing messages on the game screen. To be used like a output console for debugging. More...
#include <ScreenLog.h>
Static Public Member Functions | |
static void | SetRenderAnchor (int anchorX, int anchorY) |
Sets render anchor. More... | |
static void | Add (char *format,...) |
Adds format. More... | |
Private Types | |
typedef std::list< std::string > | MessageCollection |
Private Member Functions | |
ScreenLog (const ScreenLog &)=delete | |
ScreenLog & | operator= (const ScreenLog &)=delete |
ScreenLog (ScreenLog &&)=delete | |
ScreenLog & | operator= (ScreenLog &&)=delete |
void | privSetRenderAnchor (int anchorX, int anchorY) |
void | privRender () |
Static Private Member Functions | |
static ScreenLog & | GetInstance () |
static void | Render () |
Renders all messages onto the screen More... | |
static void | Delete () |
Terminates Screen Log. More... | |
Private Attributes | |
int | _anchorX |
int | _anchorY |
char | _debugBuff [256] |
SpriteFont * | _pFont |
MessageCollection | _messages |
Static Private Attributes | |
static ScreenLog * | pScreenLogInstance = nullptr |
Friends | |
class | ScreenLogAttorney |
A screen log used for writing messages on the game screen. To be used like a output console for debugging.
|
staticprivate |
Terminates Screen Log.
ONLY called by the Wraith::UnLoadContent() through ScreenLogAttorney.
|
inlinestaticprivate |
Renders all messages onto the screen
ONLY called by Wraith::Draw() through the ScreenLogAttorney.