소스 검색

OverlayDrawList readier for pushing elements (not exposed yet)

ocornut 10 년 전
부모
커밋
368d2c3568
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      imgui.cpp

+ 2 - 0
imgui.cpp

@@ -2153,6 +2153,8 @@ void ImGui::NewFrame()
     g.FrameCount += 1;
     g.Tooltip[0] = '\0';
     g.OverlayDrawList.Clear();
+    g.OverlayDrawList.PushTextureID(g.IO.Fonts->TexID);
+    g.OverlayDrawList.PushClipRectFullScreen();
     g.OverlayDrawList.AddDrawCmd();
 
     // Update inputs state