Wraith  0.1.5
Basic 3D game engine in C++
ScreenLog Class Reference

A screen log used for writing messages on the game screen. To be used like a output console for debugging. More...

#include <ScreenLog.h>

Collaboration diagram for ScreenLog:
Collaboration graph

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
 
ScreenLogoperator= (const ScreenLog &)=delete
 
 ScreenLog (ScreenLog &&)=delete
 
ScreenLogoperator= (ScreenLog &&)=delete
 
void privSetRenderAnchor (int anchorX, int anchorY)
 
void privRender ()
 

Static Private Member Functions

static ScreenLogGetInstance ()
 
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 ScreenLogpScreenLogInstance = nullptr
 

Friends

class ScreenLogAttorney
 

Detailed Description

A screen log used for writing messages on the game screen. To be used like a output console for debugging.

Member Function Documentation

◆ Delete()

void ScreenLog::Delete ( )
staticprivate

Terminates Screen Log.

ONLY called by the Wraith::UnLoadContent() through ScreenLogAttorney.

◆ Render()

static void ScreenLog::Render ( )
inlinestaticprivate

Renders all messages onto the screen

ONLY called by Wraith::Draw() through the ScreenLogAttorney.


The documentation for this class was generated from the following files: