Changeset View
Changeset View
Standalone View
Standalone View
source/ps/CLogger.cpp
Show All 16 Lines | |||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "CLogger.h" | #include "CLogger.h" | ||||
#include "graphics/Canvas2D.h" | #include "graphics/Canvas2D.h" | ||||
#include "graphics/FontMetrics.h" | #include "graphics/FontMetrics.h" | ||||
#include "graphics/TextRenderer.h" | #include "graphics/TextRenderer.h" | ||||
#include "lib/ogl.h" | |||||
#include "lib/os_path.h" | #include "lib/os_path.h" | ||||
#include "lib/timer.h" | #include "lib/timer.h" | ||||
#include "lib/utf8.h" | #include "lib/utf8.h" | ||||
#include "ps/CConsole.h" | #include "ps/CConsole.h" | ||||
#include "ps/CStr.h" | #include "ps/CStr.h" | ||||
#include "ps/CStrInternStatic.h" | #include "ps/CStrInternStatic.h" | ||||
#include "ps/Profile.h" | #include "ps/Profile.h" | ||||
#include "ps/Pyrogenesis.h" | #include "ps/Pyrogenesis.h" | ||||
▲ Show 20 Lines • Show All 167 Lines • ▼ Show 20 Lines | void CLogger::WriteWarning(const char* message) | ||||
m_MainLog->flush(); | m_MainLog->flush(); | ||||
PushRenderMessage(Warning, message); | PushRenderMessage(Warning, message); | ||||
} | } | ||||
void CLogger::Render() | void CLogger::Render() | ||||
{ | { | ||||
PROFILE3_GPU("logger"); | PROFILE3_GPU("logger"); | ||||
OGL_SCOPED_DEBUG_GROUP("Draw CLogger messages"); | |||||
CleanupRenderQueue(); | CleanupRenderQueue(); | ||||
CStrIntern font_name("mono-stroke-10"); | CStrIntern font_name("mono-stroke-10"); | ||||
CFontMetrics font(font_name); | CFontMetrics font(font_name); | ||||
int lineSpacing = font.GetLineSpacing(); | int lineSpacing = font.GetLineSpacing(); | ||||
CTextRenderer textRenderer; | CTextRenderer textRenderer; | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator