diff options
author | Dave Parks <davep@lindenlab.com> | 2011-04-04 12:19:14 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-04-04 12:19:14 -0500 |
commit | 844c3ec724c0183c6158ca742404018ad8deb9b5 (patch) | |
tree | 2ae2860a6c38c4ad9fa299105f05e594a9ac7790 /indra/newview/lldebugview.cpp | |
parent | 3a08499572250b46d061106298e2d2777276efc1 (diff) |
SH-477 Scene stats console work in progress.
Diffstat (limited to 'indra/newview/lldebugview.cpp')
-rw-r--r-- | indra/newview/lldebugview.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/lldebugview.cpp b/indra/newview/lldebugview.cpp index 0876c3fd99..b6d67899f8 100644 --- a/indra/newview/lldebugview.cpp +++ b/indra/newview/lldebugview.cpp @@ -39,7 +39,9 @@ #include "llviewerwindow.h" #include "llappviewer.h" #include "llmemoryview.h" +#include "llsceneview.h" #include "llviewertexture.h" + // // Globals // @@ -83,6 +85,13 @@ void LLDebugView::init() addChild(mFastTimerView); mFastTimerView->setRect(rect); + gSceneView = new LLSceneView(r); + gSceneView->setFollowsTop(); + gSceneView->setFollowsLeft(); + gSceneView->setVisible(FALSE); + addChild(gSceneView); + gSceneView->setRect(rect); + r.setLeftTopAndSize(25, rect.getHeight() - 50, (S32) (gViewerWindow->getWindowRectScaled().getWidth() * 0.75f), (S32) (gViewerWindow->getWindowRectScaled().getHeight() * 0.75f)); LLMemoryView::Params mp; @@ -103,6 +112,9 @@ void LLDebugView::init() addChild(gTextureView); //gTextureView->reshape(r.getWidth(), r.getHeight(), TRUE); + + + if(gAuditTexture) { r.set(150, rect.getHeight() - 50, 900 + LLImageGL::sTextureLoadedCounter.size() * 30, 100); @@ -133,6 +145,7 @@ LLDebugView::~LLDebugView() // These have already been deleted. Fix the globals appropriately. gDebugView = NULL; gTextureView = NULL; + gSceneView = NULL; gTextureSizeView = NULL; gTextureCategoryView = NULL; } |