Skip to content

Commit

Permalink
Overlay: rename to DrawRenderingSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 18, 2024
1 parent e74e169 commit a8d26d6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Components/Bites/src/OgreApplicationContextBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ struct ImGuiConfigDialog : Ogre::FrameListener
auto center = ImGui::GetMainViewport()->GetCenter();
ImGui::SetNextWindowPos(center, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
ImGui::Begin("Rendering Settings", NULL, flags);
Ogre::RenderingSettings(nextRenderer);
Ogre::DrawRenderingSettings(nextRenderer);
ImGui::Separator();
if (ImGui::Button("Accept"))
{
Expand Down
4 changes: 2 additions & 2 deletions Components/Overlay/include/OgreImGuiOverlay.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ namespace Ogre
{
/** Draws a renderer configuration menu using ImGui
*
* Wrap this in a Begin() and End() call to draw the dialog.
* Wrap this in a ImGui::Begin() and ImGui::End() call to create the dialog.
* @param renderSystemName The name of the render system that the user selected
*/
_OgreOverlayExport void RenderingSettings(String& renderSystemName);
_OgreOverlayExport void DrawRenderingSettings(String& renderSystemName);

///Ogre's integrated support for [Dear ImGui](https://github.com/ocornut/imgui)
class _OgreOverlayExport ImGuiOverlay : public Overlay
Expand Down
2 changes: 1 addition & 1 deletion Components/Overlay/src/OgreImGuiOverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static void DrawConfigOption(RenderSystem* rs, const ConfigOption& opt)
}
}

void RenderingSettings(String& rsName)
void DrawRenderingSettings(String& rsName)
{
auto root = Root::getSingletonPtr();
OgreAssert(root, "Root must be created");
Expand Down
2 changes: 1 addition & 1 deletion Samples/Browser/include/SampleBrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ namespace OgreBites
else
ImGui::SetNextWindowPos(center, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
ImGui::Begin("Configuration", NULL, flags);
Ogre::RenderingSettings(mNextRenderer);
Ogre::DrawRenderingSettings(mNextRenderer);
ImGui::End();
}

Expand Down

0 comments on commit a8d26d6

Please sign in to comment.