MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / Section

Method Section

Source/HUD/Debug.cpp:6–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "../Renderer/RMaster.h"
5
6Debug_HUD::Section::Section(std::string&& stringFormat, const sf::Vector2f& textPosition, const void* var)
7: format (std::move(stringFormat))
8, position (textPosition)
9, info (var)
10{
11 text.setCharacterSize (20);
12 text.setFont (getResources().fonts.get("rs"));
13 text.setOutlineThickness (1);
14 text.setOutlineColor (sf::Color::Black);
15 text.setPosition(position);
16}
17
18
19void Debug_HUD::addDebugSector(std::string&& format,

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
setPositionMethod · 0.45

Tested by

no test coverage detected