ImGuiImplSDL2NewFrame
ImGuiImplSDL2NewFrame is a function within the Dear ImGui library, specifically designed for integrating ImGui with the Simple DirectMedia Layer (SDL) version 2. This function serves as a crucial step in the rendering pipeline when using ImGui with an SDL2 application. Its primary purpose is to reset and prepare the ImGui state for the current frame, incorporating any input events that have occurred since the last frame.
When ImGuiImplSDL2NewFrame is called, it processes events from the SDL event queue, such as mouse movements,
The function also handles the creation of a new ImGui frame. This involves resetting internal data structures,