History

add LOD to overlay display

ZappoMan committed 12 years ago

Commit 4b60c541 parent 8622f2d5 files · +56 −48Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+17−8
@@ -2786,8 +2786,8 @@ void Application::displayStats() { · 2785 unmodified lines
27862786 voxelStats.str("");
27872787 QString packetsString = locale.toString((int)voxelPacketsToProcess);
27882788 QString maxString = locale.toString((int)_recentMaxPackets);
2789− voxelStats << "Voxel Packets to Process: " << packetsString.toLocal8Bit().constData()
2790− << " [Recent Max: " << maxString.toLocal8Bit().constData() << "]";
2789+ voxelStats << "Voxel Packets to Process: " << qPrintable(packetsString)
2790+ << " [Recent Max: " << qPrintable(maxString) << "]";
27912791 verticalOffset += STATS_PELS_PER_LINE;
27922792 drawText(horizontalOffset, verticalOffset, 0.10f, 0, 2, (char*)voxelStats.str().c_str(), WHITE_TEXT);
27932793 }
@@ -2810,7 +2810,7 @@ void Application::displayStats() { · 16 unmodified lines
28102810
28112811 // Server Voxels
28122812 voxelStats.str("");
2813− voxelStats << "Server voxels: " << serversTotalString.toLocal8Bit().constData();
2813+ voxelStats << "Server voxels: " << qPrintable(serversTotalString);
28142814 verticalOffset += STATS_PELS_PER_LINE;
28152815 drawText(horizontalOffset, verticalOffset, 0.10f, 0, 2, (char*)voxelStats.str().c_str(), WHITE_TEXT);
28162816
@@ -2820,8 +2820,8 @@ void Application::displayStats() { · 3 unmodified lines
28202820
28212821 voxelStats.str("");
28222822 voxelStats <<
2823− "Internal: " << serversInternalString.toLocal8Bit().constData() << " " <<
2824− "Leaves: " << serversLeavesString.toLocal8Bit().constData() << "";
2823+ "Internal: " << qPrintable(serversInternalString) << " " <<
2824+ "Leaves: " << qPrintable(serversLeavesString) << "";
28252825 verticalOffset += STATS_PELS_PER_LINE;
28262826 drawText(horizontalOffset, verticalOffset, 0.10f, 0, 2, (char*)voxelStats.str().c_str(), WHITE_TEXT);
28272827 }
@@ -2831,7 +2831,7 @@ void Application::displayStats() { · 3 unmodified lines
28312831
28322832 // Local Voxels
28332833 voxelStats.str("");
2834− voxelStats << "Local voxels: " << localTotalString.toLocal8Bit().constData();
2834+ voxelStats << "Local voxels: " << qPrintable(localTotalString);
28352835 verticalOffset += STATS_PELS_PER_LINE;
28362836 drawText(horizontalOffset, verticalOffset, 0.10f, 0, 2, (char*)voxelStats.str().c_str(), WHITE_TEXT);
28372837
@@ -2843,8 +2843,17 @@ void Application::displayStats() { · 5 unmodified lines
28432843
28442844 voxelStats.str("");
28452845 voxelStats <<
2846− "Internal: " << localInternalString.toLocal8Bit().constData() << " " <<
2847− "Leaves: " << localLeavesString.toLocal8Bit().constData() << "";
2846+ "Internal: " << qPrintable(localInternalString) << " " <<
2847+ "Leaves: " << qPrintable(localLeavesString) << "";
2848+ verticalOffset += STATS_PELS_PER_LINE;
2849+ drawText(horizontalOffset, verticalOffset, 0.10f, 0, 2, (char*)voxelStats.str().c_str(), WHITE_TEXT);
2850+ }
2851+
2852+ // LOD Details
2853+ if (_statsExpanded) {
2854+ voxelStats.str("");
2855+ QString displayLODDetails = Menu::getInstance()->getLODFeedbackText();
2856+ voxelStats << "LOD: You can see " << qPrintable(displayLODDetails.trimmed());
28482857 verticalOffset += STATS_PELS_PER_LINE;
28492858 drawText(horizontalOffset, verticalOffset, 0.10f, 0, 2, (char*)voxelStats.str().c_str(), WHITE_TEXT);
28502859 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t