/** * Set the resolution for the rendering display * @param width The width * @param height The height * (Default: 640x480) */ public void setResolution(int width, int height) { setWidth(width); setHeight(height); }
source.setHeight(height); source.setBitsPerPixel(depth); source.setFrequency(freq);
public static void main(String[] args) throws InterruptedException{ AppSettings settings = new AppSettings(true); settings.setWidth(640); settings.setHeight(480);
public static void createCanvas(String appClass){ AppSettings settings = new AppSettings(true); settings.setWidth(640); settings.setHeight(480); // settings.setRenderer(AppSettings.JOGL); JmeSystem.setLowPermissions(true); try{ Class<? extends LegacyApplication> clazz = (Class<? extends LegacyApplication>) Class.forName(appClass); app = clazz.newInstance(); }catch (ClassNotFoundException ex){ ex.printStackTrace(); }catch (InstantiationException ex){ ex.printStackTrace(); }catch (IllegalAccessException ex){ ex.printStackTrace(); } app.setSettings(settings); app.createCanvas(); context = (JmeCanvasContext) app.getContext(); canvas = context.getCanvas(); canvas.setSize(settings.getWidth(), settings.getHeight()); }
public static void createCanvas(String appClass){ AppSettings settings = new AppSettings(true); settings.setWidth(640); settings.setHeight(480); try{ Class<? extends LegacyApplication> clazz = (Class<? extends LegacyApplication>) Class.forName(appClass); app = clazz.newInstance(); }catch (ClassNotFoundException ex){ ex.printStackTrace(); }catch (InstantiationException ex){ ex.printStackTrace(); }catch (IllegalAccessException ex){ ex.printStackTrace(); } app.setPauseOnLostFocus(false); app.setSettings(settings); app.createCanvas(); app.startCanvas(); context = (JmeCanvasContext) app.getContext(); canvas = context.getCanvas(); canvas.setSize(settings.getWidth(), settings.getHeight()); }
settings.setHeight(getHeight());
settings.setHeight(getHeight()); settings.setAudioRenderer(null);
public TestContextSwitching() { AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(true); settings.setWidth(800); settings.setHeight(600); settings.setOpenCLPlatformChooser(CustomPlatformChooser.class); //settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE); setSettings(settings); setShowSettings(false); }
settings.setHeight(useDM.getHeight()); settings.setBitsPerPixel(useDM.getBitDepth()); settings.setFrequency(useDM.getRefreshRate()); BufferedReader br = new BufferedReader(new FileReader(resfile)); settings.setWidth(Integer.parseInt(br.readLine())); settings.setHeight(Integer.parseInt(br.readLine())); try { settings.setFullscreen(br.readLine().toLowerCase(Locale.ENGLISH).contains("full")); } catch(Exception e) { settings.setWidth(1280); settings.setHeight(720); settings.setHeight(720); settings.setFullscreen(false); settings.setHeight(yWin); settings.setBitsPerPixel(24); settings.setFrameRate(0); // never sleep in main loop
settings.setHeight(useDM.getHeight()); settings.setBitsPerPixel(useDM.getBitDepth()); settings.setFrequency(useDM.getRefreshRate()); BufferedReader br = new BufferedReader(new FileReader(resfile)); settings.setWidth(Integer.parseInt(br.readLine())); settings.setHeight(Integer.parseInt(br.readLine())); try { settings.setFullscreen(br.readLine().toLowerCase(Locale.ENGLISH).contains("full")); } catch(Exception e) { settings.setWidth(1280); settings.setHeight(720); settings.setHeight(720); settings.setFullscreen(false); settings.setHeight(yWin); settings.setBitsPerPixel(32); settings.setFrameRate(0);
/** * Set the resolution for the rendering display * @param width The width * @param height The height * (Default: 640x480) */ public void setResolution(int width, int height) { setWidth(width); setHeight(height); }
public static void main(String[] args) { Logger.getGlobal().setLevel(Level.ALL); CreateScreenCommandTest app = new CreateScreenCommandTest(); app.setPauseOnLostFocus(false); app.setShowSettings(false); AppSettings settings = new AppSettings(true); settings.setWidth(480); settings.setHeight(800); app.setSettings(settings); app.start(); }
public static void main(String[] args) { AttachDeviceToBodyTest test = new AttachDeviceToBodyTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(true); AppSettings settings = new AppSettings(true); settings.setWidth(1024); settings.setHeight(720); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { SensorPresenceHouseTest test = new SensorPresenceHouseTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(960); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { WalkingAroundHouseAccTest test = new WalkingAroundHouseAccTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(720); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { JsonRpcTest test = new JsonRpcTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(720); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { PresenceSensorTest test = new PresenceSensorTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(1280); settings.setHeight(960); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { AccelerometerParkinsonTest test = new AccelerometerParkinsonTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(640); settings.setHeight(480); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { RemoteAccelerometerParkinsonTest test = new RemoteAccelerometerParkinsonTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(640); settings.setHeight(480); phat.setSettings(settings); phat.start(); }
public static void main(String[] args) { ScreenAVDTest test = new ScreenAVDTest(); PHATApplication phat = new PHATApplication(test); phat.setDisplayFps(true); phat.setDisplayStatView(false); AppSettings settings = new AppSettings(true); settings.setTitle("PHAT"); settings.setWidth(640); settings.setHeight(480); phat.setSettings(settings); phat.start(); }