MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / AddDebugText

Method AddDebugText

Source/GUI/gui.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29extern Timer game_timer;
30
31void GUI::AddDebugText(const std::string &key, const std::string &text, float lifetime) {
32 GUI::DebugTextEntry *debug_text_entry = &(debug_text[key]);
33 debug_text_entry->text = text;
34 debug_text_entry->delete_time = SDL_TS_GetTicks() + (uint32_t)(1000 * lifetime);
35}

Callers 5

DrawMethod · 0.80
DrawObjInfoFunction · 0.80
DrawImGuiFunction · 0.80
ASDebugTextFunction · 0.80

Calls 1

SDL_TS_GetTicksFunction · 0.85

Tested by

no test coverage detected