mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
added new menu items for view delta
This commit is contained in:
parent
4f826e96ee
commit
a95549da2e
1 changed files with 11 additions and 0 deletions
|
@ -165,6 +165,7 @@ unsigned char dominantColor = 0; // The dominant color of the voxel we're
|
|||
bool perfStatsOn = false; // Do we want to display perfStats?
|
||||
bool wantMonochrome = false; // ask server to send us in monochrome
|
||||
bool wantResIn = false; // ask server to res in
|
||||
bool wantDelta = false; // ask server to send delta only
|
||||
|
||||
bool logOn = true; // Whether to show on-screen log
|
||||
|
||||
|
@ -1296,6 +1297,15 @@ int setWantMonochrome(int state) {
|
|||
return value;
|
||||
}
|
||||
|
||||
int setWantDelta(int state) {
|
||||
int value = setValue(state, &::wantDelta);
|
||||
if (state == MENU_ROW_PICKED) {
|
||||
::myAvatar.setWantDelta(::wantDelta);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
int setDisplayFrustum(int state) {
|
||||
return setValue(state, &::frustumOn);
|
||||
}
|
||||
|
@ -1463,6 +1473,7 @@ void initMenu() {
|
|||
menuColumnDebug->addRow("Calculate Tree Stats", doTreeStats);
|
||||
menuColumnDebug->addRow("Wants Res-In", setWantResIn);
|
||||
menuColumnDebug->addRow("Wants Monochrome", setWantMonochrome);
|
||||
menuColumnDebug->addRow("Wants View-Delta Only", setWantDelta);
|
||||
}
|
||||
|
||||
void testPointToVoxel() {
|
||||
|
|
Loading…
Reference in a new issue