Java Code Examples for com.jme3.system.AppSettings#setOpenCLSupport()
The following examples show how to use
com.jme3.system.AppSettings#setOpenCLSupport() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TestMultipleApplications.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 6 votes |
/** * @param args the command line arguments */ public static void main(String[] args) { final AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(true); settings.setOpenCLPlatformChooser(CustomPlatformChooser.class); settings.setRenderer(AppSettings.LWJGL_OPENGL2); for (int i=0; i<2; ++i) { new Thread() { @Override public void run() { if (currentDeviceIndex == -1) { return; } TestMultipleApplications app = new TestMultipleApplications(); app.setSettings(settings); app.setShowSettings(false); app.start(); } }.start(); } }
Example 2
Source File: TestVertexBufferSharing.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
public static void main(String[] args){ TestVertexBufferSharing app = new TestVertexBufferSharing(); AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(false); settings.setRenderer(AppSettings.LWJGL_OPENGL2); app.setSettings(settings); app.start(); // start the game }
Example 3
Source File: TestContextSwitching.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
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.LWJGL_OPENGL2); setSettings(settings); setShowSettings(false); }
Example 4
Source File: HelloOpenCL.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
public static void main(String[] args){ HelloOpenCL app = new HelloOpenCL(); AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(true); settings.setRenderer(AppSettings.LWJGL_OPENGL2); app.setSettings(settings); app.start(); // start the game }
Example 5
Source File: TestOpenCLLibraries.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
public static void main(String[] args){ TestOpenCLLibraries app = new TestOpenCLLibraries(); AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(true); settings.setRenderer(AppSettings.LWJGL_OPENGL2); app.setSettings(settings); app.start(); // start the game }
Example 6
Source File: TestWriteToTexture.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
public static void main(String[] args){ TestWriteToTexture app = new TestWriteToTexture(); AppSettings settings = new AppSettings(true); settings.setOpenCLSupport(true); settings.setVSync(false); settings.setRenderer(AppSettings.LWJGL_OPENGL2); app.setSettings(settings); app.start(); // start the game }