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

Function DrawProfilerTextTransient

engine/profiler/src/profiler_render.cpp:262–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 }
261
262 static void DrawProfilerTextTransient(HRenderProfile render_profile, dmRender::HRenderContext render_context, dmRender::HFontMap font_map, uint64_t batch_key, const dmRender::DrawTextParams& params, const char* text)
263 {
264 HTextLayout layout = 0;
265 if (CreateTransientTextLayout(render_profile, font_map, text, params, &layout))
266 {
267 DrawProfilerTextLayout(render_context, font_map, batch_key, params, layout);
268 return;
269 }
270
271 dmRender::DrawTextParams raw_params = params;
272 raw_params.m_Text = text ? text : "";
273 raw_params.m_TextLayout = 0;
274 dmRender::DrawText(render_context, font_map, 0, batch_key, raw_params);
275 }
276
277 static void FlushRecording(RenderProfile* render_profile, uint32_t capacity)
278 {

Callers 1

DrawFunction · 0.85

Calls 3

DrawProfilerTextLayoutFunction · 0.85
DrawTextFunction · 0.85

Tested by

no test coverage detected