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

Function ClearDebugRenderObjects

engine/render/src/render/debug_renderer.cpp:122–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 }
121
122 void ClearDebugRenderObjects(HRenderContext context)
123 {
124 if (!context->m_DebugRenderer.m_RenderContext)
125 return;
126 for (uint32_t i = 0; i < MAX_DEBUG_RENDER_TYPE_COUNT; ++i)
127 {
128 context->m_DebugRenderer.m_TypeData[i].m_RenderObject.m_VertexCount = 0;
129 }
130 context->m_DebugRenderer.m_RenderBatchVersion = 0;
131 }
132
133 static void LogVertexWarning(HRenderContext context)
134 {

Callers 1

ClearRenderObjectsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected