mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:17:43 +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 perfStatsOn = false; // Do we want to display perfStats?
|
||||||
bool wantMonochrome = false; // ask server to send us in monochrome
|
bool wantMonochrome = false; // ask server to send us in monochrome
|
||||||
bool wantResIn = false; // ask server to res in
|
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
|
bool logOn = true; // Whether to show on-screen log
|
||||||
|
|
||||||
|
@ -1296,6 +1297,15 @@ int setWantMonochrome(int state) {
|
||||||
return value;
|
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) {
|
int setDisplayFrustum(int state) {
|
||||||
return setValue(state, &::frustumOn);
|
return setValue(state, &::frustumOn);
|
||||||
}
|
}
|
||||||
|
@ -1463,6 +1473,7 @@ void initMenu() {
|
||||||
menuColumnDebug->addRow("Calculate Tree Stats", doTreeStats);
|
menuColumnDebug->addRow("Calculate Tree Stats", doTreeStats);
|
||||||
menuColumnDebug->addRow("Wants Res-In", setWantResIn);
|
menuColumnDebug->addRow("Wants Res-In", setWantResIn);
|
||||||
menuColumnDebug->addRow("Wants Monochrome", setWantMonochrome);
|
menuColumnDebug->addRow("Wants Monochrome", setWantMonochrome);
|
||||||
|
menuColumnDebug->addRow("Wants View-Delta Only", setWantDelta);
|
||||||
}
|
}
|
||||||
|
|
||||||
void testPointToVoxel() {
|
void testPointToVoxel() {
|
||||||
|
|
Loading…
Reference in a new issue