-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
// HelloImGui::Renderer is an alternative to HelloImGui::Run, allowing fine-grained control over the rendering process. // - It is customizable like HelloImGui::Run: construct it with `RunnerParams` or `SimpleRunnerParams` // - `Render()` will render the application for one frame: // Ensure that `Render()` is triggered regularly (e.g., through a loop or other mechanism) to maintain responsiveness. // This method must be called on the main thread. // // A typical use case is: // ```cpp // HelloImGui::RunnerParams runnerParams; // runnerParams.callbacks.ShowGui = ...; // your GUI function // // Optionally, choose between Sleep, EarlyReturn, or Auto for fps idling mode: // // runnerParams.fpsIdling.fpsIdlingMode = HelloImGui::FpsIdlingMode::Sleep; // or EarlyReturn, Auto // Renderer renderer(runnerParams); // note: a distinct copy of the `RunnerParams` will be stored inside the HelloImGui::GetRunnerParams() // while (! HelloImGui::GetRunnerParams()->appShallExit) // { // renderer.Render(); // } // ```
- Loading branch information
Showing
5 changed files
with
194 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters