Browse Source

Renamed io.MetricsVertices to io.MetricsRenderVertices

ocornut 10 years ago
parent
commit
4fa3eee84e
2 changed files with 4 additions and 4 deletions
  1. 3 3
      imgui.cpp
  2. 1 1
      imgui.h

+ 3 - 3
imgui.cpp

@@ -1673,7 +1673,7 @@ static inline void AddDrawListToRenderList(ImVector<ImDrawList*>& out_render_lis
         if (draw_list->commands.back().vtx_count == 0)
         if (draw_list->commands.back().vtx_count == 0)
             draw_list->commands.pop_back();
             draw_list->commands.pop_back();
         out_render_list.push_back(draw_list);
         out_render_list.push_back(draw_list);
-        GImGui->IO.MetricsVertices += (int)draw_list->vtx_buffer.size();
+        GImGui->IO.MetricsRenderVertices += (int)draw_list->vtx_buffer.size();
     }
     }
 }
 }
 
 
@@ -2207,7 +2207,7 @@ void ImGui::Render()
         }
         }
 
 
         // Gather windows to render
         // Gather windows to render
-        g.IO.MetricsVertices = 0;
+        g.IO.MetricsRenderVertices = 0;
         for (size_t i = 0; i < IM_ARRAYSIZE(g.RenderDrawLists); i++)
         for (size_t i = 0; i < IM_ARRAYSIZE(g.RenderDrawLists); i++)
             g.RenderDrawLists[i].resize(0);
             g.RenderDrawLists[i].resize(0);
         for (size_t i = 0; i != g.Windows.size(); i++)
         for (size_t i = 0; i != g.Windows.size(); i++)
@@ -10410,7 +10410,7 @@ void ImGui::ShowMetricsWindow(bool* opened)
     {
     {
         ImGui::Text("ImGui %s", ImGui::GetVersion());
         ImGui::Text("ImGui %s", ImGui::GetVersion());
         ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate);
         ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / ImGui::GetIO().Framerate, ImGui::GetIO().Framerate);
-        ImGui::Text("%d vertices", ImGui::GetIO().MetricsVertices);
+        ImGui::Text("%d vertices", ImGui::GetIO().MetricsRenderVertices);
         ImGui::Separator();
         ImGui::Separator();
 
 
         struct Funcs
         struct Funcs

+ 1 - 1
imgui.h

@@ -670,7 +670,7 @@ struct ImGuiIO
     bool        WantCaptureMouse;           // Mouse is hovering a window or widget is active (= ImGui will use your mouse input)
     bool        WantCaptureMouse;           // Mouse is hovering a window or widget is active (= ImGui will use your mouse input)
     bool        WantCaptureKeyboard;        // Widget is active (= ImGui will use your keyboard input)
     bool        WantCaptureKeyboard;        // Widget is active (= ImGui will use your keyboard input)
     float       Framerate;                  // Framerate estimation, in frame per second. Rolling average estimation based on IO.DeltaTime over 120 frames
     float       Framerate;                  // Framerate estimation, in frame per second. Rolling average estimation based on IO.DeltaTime over 120 frames
-    int         MetricsVertices;            // Vertices processed during last call to Render()
+    int         MetricsRenderVertices;      // Vertices processed during last call to Render()
 
 
     //------------------------------------------------------------------
     //------------------------------------------------------------------
     // [Internal] ImGui will maintain those fields for you
     // [Internal] ImGui will maintain those fields for you