diff --git a/readme.md b/readme.md index 9620351b0..a5dfb5605 100644 --- a/readme.md +++ b/readme.md @@ -326,9 +326,17 @@ int main(int argc, char** argv) // modified and added elements, or changed data in data bindings. context->Update(); + // Prepare the application for rendering, such as by clearing the window. This calls + // into the RmlUi backend interface, replace with your own procedures as appropriate. + Backend::BeginFrame(); + // Render the user interface. All geometry and other rendering commands are now // submitted through the render interface. context->Render(); + + // Present the rendered content, such as by swapping the swapchain. This calls into + // the RmlUi backend interface, replace with your own procedures as appropriate. + Backend::PresentFrame(); } Rml::Shutdown();