comparison src/com/aurellem/capture/examples/Advanced.java @ 49:121b6d7e4d3f

more friendly AppSettings handling
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 13:22:27 -0600
parents 6ecfef90e9eb
children 8a091a5f48fa
comparison
equal deleted inserted replaced
48:6ecfef90e9eb 49:121b6d7e4d3f
67 67
68 public static void main(String[] args) { 68 public static void main(String[] args) {
69 //Logger.getLogger("com.jme3").setLevel(Level.OFF); 69 //Logger.getLogger("com.jme3").setLevel(Level.OFF);
70 Advanced app = new Advanced(); 70 Advanced app = new Advanced();
71 AppSettings settings = new AppSettings(true); 71 AppSettings settings = new AppSettings(true);
72 settings.setAudioRenderer("Send"); 72 settings.setAudioRenderer(AurellemSystemDelegate.SEND);
73 JmeSystem.setSystemDelegate(new AurellemSystemDelegate()); 73 JmeSystem.setSystemDelegate(new AurellemSystemDelegate());
74 app.setSettings(settings); 74 app.setSettings(settings);
75 app.setShowSettings(false); 75 app.setShowSettings(false);
76 app.setPauseOnLostFocus(false); 76 app.setPauseOnLostFocus(false);
77 77
162 track.setCurveTension(0.80f); 162 track.setCurveTension(0.80f);
163 163
164 motionControl = new MotionTrack(bell,track); 164 motionControl = new MotionTrack(bell,track);
165 165
166 // for now, use reflection to change the timer... 166 // for now, use reflection to change the timer...
167 //motionControl.setTimer(new IsoTimer(60)); 167 // motionControl.setTimer(new IsoTimer(60));
168 try { 168 try {
169 Field timerField; 169 Field timerField;
170 timerField = AbstractCinematicEvent.class.getDeclaredField("timer"); 170 timerField = AbstractCinematicEvent.class.getDeclaredField("timer");
171 timerField.setAccessible(true); 171 timerField.setAccessible(true);
172 try {timerField.set(motionControl, new IsoTimer(60));} 172 try {timerField.set(motionControl, new IsoTimer(60));}