MCPcopy Create free account
hub / github.com/defold/defold / DrawProfilerTextLayout

Function DrawProfilerTextLayout

engine/profiler/src/profiler_render.cpp:207–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 static void DrawProfilerTextLayout(dmRender::HRenderContext render_context, dmRender::HFontMap font_map, uint64_t batch_key, const dmRender::DrawTextParams& params, HTextLayout layout)
208 {
209 dmRender::DrawTextParams prepared_params = params;
210 prepared_params.m_Text = 0;
211 prepared_params.m_TextLayout = layout;
212 dmRender::DrawText(render_context, font_map, 0, batch_key, prepared_params);
213 }
214
215 static bool CreateTransientTextLayout(HRenderProfile render_profile, dmRender::HFontMap font_map, const char* text, const dmRender::DrawTextParams& params, HTextLayout* out_layout)
216 {

Callers 2

DrawProfilerTextCachedFunction · 0.85

Calls 1

DrawTextFunction · 0.85

Tested by

no test coverage detected