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

Method drawSection

Source/HUD/Debug.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void Debug_HUD::drawSection(Section& section, Renderer::Master& master)
35{
36 char buffer[256];
37
38 std::snprintf(buffer,
39 sizeof(buffer),
40 section.format.c_str(),
41 *(float*)section.info);
42
43 section.text.setString (buffer);
44 master.draw (section.text);
45}
46
47

Callers

nothing calls this directly

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected