MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / AddDebugString

Method AddDebugString

TombEngine/Renderer/RendererString.cpp:9–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace TEN::Renderer
8{
9 void Renderer::AddDebugString(const std::string& string, const Vector2& pos, const Color& color, float scale, RendererDebugPage page)
10 {
11 constexpr auto FLAGS = (int)PrintStringFlags::Outline | (int)PrintStringFlags::Center;
12
13 if (_isLocked)
14 return;
15
16 if (!DebugMode || (_debugPage != page && page != RendererDebugPage::None))
17 return;
18
19 AddString(string, pos, color, scale, FLAGS);
20 }
21
22 void Renderer::AddString(int x, int y, const std::string& string, D3DCOLOR color, int flags)
23 {

Callers 1

DrawDebugStringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected