| 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 |