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

Function AS_ImDrawList_AddText

Source/Scripting/angelscript/asfuncs.cpp:4659–4665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4657}
4658
4659void AS_ImDrawList_AddText(const vec2& pos, uint32_t col, const std::string& text) {
4660 ImDrawList* draw_list;
4661
4662 if (ImGui_TryGetWindowDrawList(&draw_list)) {
4663 draw_list->AddText(ImVec2(pos[0], pos[1]), col, text.c_str());
4664 }
4665}
4666
4667void AS_ImDrawList_AddImage(const TextureAssetRef& user_texture_ref, const vec2& a, const vec2& b, const vec2& uv_a, const vec2& uv_b, uint32_t tint_color) {
4668 ImDrawList* draw_list;

Callers

nothing calls this directly

Calls 4

ImVec2Function · 0.50
AddTextMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected