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

Function ClearRenderObjects

engine/render/src/render/render.cpp:402–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 }
401
402 Result ClearRenderObjects(HRenderContext context)
403 {
404 context->m_RenderObjects.SetSize(0);
405 ClearDebugRenderObjects(context);
406
407 // Should probably be moved and/or refactored, see case 2261
408 // (Cannot reset the text buffer until all render objects are dispatched)
409 // Also see FontRenderListDispatch in font_renderer.cpp
410 context->m_TextContext.m_Frame += 1;
411 context->m_TextContext.m_TextBuffer.SetSize(0);
412 ClearTextEntries(context);
413
414 return RESULT_OK;
415 }
416
417 // This function will compare the values in ps_orig and ps_now and reset the render state that is different between them
418 // It is expected that the first parameter is the "default" state, i.e the values from that pipeline will be used

Callers 9

RenderProfilerFunction · 0.85
TEST_FFunction · 0.85
StepFrameFunction · 0.85
TEST_FFunction · 0.85
RenderCollectionFunction · 0.85
TEST_FFunction · 0.85
RunFunction · 0.85

Calls 3

ClearDebugRenderObjectsFunction · 0.85
ClearTextEntriesFunction · 0.85
SetSizeMethod · 0.45

Tested by 7

TEST_FFunction · 0.68
TEST_FFunction · 0.68
RenderCollectionFunction · 0.68
TEST_FFunction · 0.68
RunFunction · 0.68