public static void main(String[] args) { TestChangeAppIcon app = new TestChangeAppIcon(); AppSettings settings = new AppSettings(true); try { Class<TestChangeAppIcon> clazz = TestChangeAppIcon.class; settings.setIcons(new BufferedImage[]{ ImageIO.read(clazz.getResourceAsStream("/Interface/icons/SmartMonkey256.png")), ImageIO.read(clazz.getResourceAsStream("/Interface/icons/SmartMonkey128.png")), ImageIO.read(clazz.getResourceAsStream("/Interface/icons/SmartMonkey32.png")), ImageIO.read(clazz.getResourceAsStream("/Interface/icons/SmartMonkey16.png")), }); } catch (IOException e) { log.log(java.util.logging.Level.WARNING, "Unable to load program icons", e); } app.setSettings(settings); app.start(); }
public static void testInitHmd(){ VREnvironment environment = new VREnvironment(new AppSettings(true)); environment.initialize(); OpenVR openVr = (OpenVR) environment.getVRHardware(); System.out.println(openVr.getName()); openVr.updatePose(); openVr.destroy(); } }
@Override public void start(JmeContext.Type contextType){ AppSettings settings = new AppSettings(true); settings.setResolution(1024, 768); setSettings(settings); super.start(contextType); }
public static void main(String args[]) { TestBatchNodeTower f = new TestBatchNodeTower(); AppSettings s = new AppSettings(true); f.setSettings(s); f.start(); }
public static void main(String[] args){ TestToneMapFilter app = new TestToneMapFilter(); AppSettings settings = new AppSettings(true); // Must turn on gamma correction, as otherwise it looks too dark. settings.setGammaCorrection(true); app.setSettings(settings); app.start(); }
public static void main(String[] args){ TestInstanceNode app = new TestInstanceNode(); AppSettings settings = new AppSettings(true); settings.setVSync(false); app.setSettings(settings); app.start(); }
public static void main(String[] args){ TestJoystick app = new TestJoystick(); AppSettings settings = new AppSettings(true); settings.setUseJoysticks(true); app.setSettings(settings); app.start(); }
public static void main(String[] args) { TestCameraNode app = new TestCameraNode(); AppSettings s = new AppSettings(true); s.setFrameRate(100); app.setSettings(s); app.start(); }
public static void main(String[] args){ TestWriteToTexture app = new TestWriteToTexture(); AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(false); // settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE); app.setSettings(settings); app.start(); // start the game }
public static void main(String[] args) throws InterruptedException{ AppSettings settings = new AppSettings(true); final LegacyApplication app = new LegacyApplication(); app.setSettings(settings); app.start(); Thread.sleep(3000); settings.setFullscreen(true); settings.setResolution(-1, -1); app.setSettings(settings); app.restart(); Thread.sleep(3000); app.stop(); }
public static void main(String[] args){ TestResizableApp app = new TestResizableApp(); AppSettings settings = new AppSettings(true); settings.setResizable(true); app.setSettings(settings); app.setShowSettings(false); app.start(); }
public static void main(String[] args){ HelloOpenCL app = new HelloOpenCL(); AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(true); // settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE); app.setSettings(settings); app.start(); // start the game }
public static void main(String[] args){ TestOpenCLLibraries app = new TestOpenCLLibraries(); AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(true); // settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE); app.setSettings(settings); app.start(); // start the game }
public static void main(String[] args){ TestVertexBufferSharing app = new TestVertexBufferSharing(); AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(false); // settings.setRenderer(AppSettings.JOGL_OPENGL_FORWARD_COMPATIBLE); app.setSettings(settings); app.start(); // start the game }
public static void main(String[] args){ TestRenderToMemory app = new TestRenderToMemory(); app.setPauseOnLostFocus(false); AppSettings settings = new AppSettings(true); settings.setResolution(1, 1); app.setSettings(settings); app.start(Type.OffscreenSurface); }
public static void main(String[] args) { TestMultiPostWater app = new TestMultiPostWater(); AppSettings s = new AppSettings(true); s.setRenderer(AppSettings.LWJGL_OPENGL2); s.setAudioRenderer(AppSettings.LWJGL_OPENAL); // // s.setRenderer("JOGL"); // s.setAudioRenderer("JOAL"); app.setSettings(s); app.start(); }
public static void main(String[] args) { TestBetterCharacter app = new TestBetterCharacter(); AppSettings settings = new AppSettings(true); settings.setRenderer(AppSettings.LWJGL_OPENGL2); settings.setAudioRenderer(AppSettings.LWJGL_OPENAL); app.setSettings(settings); app.start(); }
private void initAudioPlayer(){ AppSettings settings = new AppSettings(true); settings.setRenderer(null); // disable rendering settings.setAudioRenderer("LWJGL"); ar = JmeSystem.newAudioRenderer(settings); ar.initialize(); ar.setListener(listener); AudioContext.setAudioRenderer(ar); }
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); }
public static void main(String[] args) { TestBatchNodeCluster app = new TestBatchNodeCluster(); settingst = new AppSettings(true); //settingst.setFrameRate(75); settingst.setResolution(640, 480); settingst.setVSync(false); settingst.setFullscreen(false); app.setSettings(settingst); app.setShowSettings(false); app.start(); } private ActionListener al = new ActionListener() {