ImGuiImplWin32NewFrame
ImGuiImplWin32NewFrame is a function within the ImGui library, a popular immediate mode graphical user interface library for C++. This function is part of the ImGui backend for Win32, which is responsible for handling platform-specific input and rendering. It is called at the beginning of each frame to prepare ImGui for rendering. The function updates the mouse position, mouse buttons, keyboard state, and other input data based on the current state of the Win32 window. It also handles window resizing and other window-related events. The function does not perform any rendering itself, but it sets up the necessary state for ImGui to render its UI elements in the subsequent calls. The function is designed to be called once per frame, and it should be called before any ImGui rendering commands are issued. It is important to note that ImGuiImplWin32NewFrame is specific to the Win32 platform and is not available on other platforms. For cross-platform applications, the ImGui library provides similar functions for other platforms, such as ImGuiImplGlfwNewFrame for GLFW and ImGuiImplSDL2NewFrame for SDL2.