* Added stereo 3D to AppSettings

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7822 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
Sha..om 14 years ago
parent 235646f38f
commit b2c7849355
  1. 16
      engine/src/core/com/jme3/system/AppSettings.java

@ -361,6 +361,18 @@ public class AppSettings extends HashMap<String, Object> {
putBoolean("VSync", value); putBoolean("VSync", value);
} }
/**
* Enable 3D stereo.
* <p>This feature requires hardware support from the GPU driver.
* See: http://en.wikipedia.org/wiki/Quad_buffering<br>
* Once enabled, filters or scene processors that handle 3D stereo rendering
* could use this feature to render using hardware 3D stereo.</p>
* (Default: false)
*/
public void setStereo3D(boolean value){
putBoolean("Stereo3D", value);
}
/** /**
* Sets the application icons to be used, with the most preferred first. * Sets the application icons to be used, with the most preferred first.
* For Windows you should supply at least one 16x16 icon and one 32x32. The former is used for the title/task bar, * For Windows you should supply at least one 16x16 icon and one 32x32. The former is used for the title/task bar,
@ -439,6 +451,10 @@ public class AppSettings extends HashMap<String, Object> {
return getString("AudioRenderer"); return getString("AudioRenderer");
} }
public boolean useStereo3D(){
return getBoolean("Stereo3D");
}
public Object[] getIcons() { public Object[] getIcons() {
return (Object[]) get("Icons"); return (Object[]) get("Icons");
} }

Loading…
Cancel
Save