Java Code Examples for com.jme3.system.JmeContext#Type
The following examples show how to use
com.jme3.system.JmeContext#Type .
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: TestAppStates.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public void start(JmeContext.Type contextType){ AppSettings settings = new AppSettings(true); settings.setResolution(1024, 768); setSettings(settings); super.start(contextType); }
Example 2
Source File: JmeIosSystem.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
@Override public JmeContext newContext(AppSettings settings, JmeContext.Type contextType) { initialize(settings); JmeContext ctx = null; if (settings.getRenderer() == null || settings.getRenderer().equals("NULL") || contextType == JmeContext.Type.Headless) { ctx = new NullContext(); ctx.setSettings(settings); } else { ctx = new IGLESContext(); ctx.setSettings(settings); } return ctx; }
Example 3
Source File: LwjglWindowVR.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Create a new wrapper class over the GLFW framework in LWJGL 3. * @param type the {@link com.jme3.system.JmeContext.Type type} of the display. */ public LwjglWindowVR(final JmeContext.Type type) { if (!JmeContext.Type.Display.equals(type) && !JmeContext.Type.OffscreenSurface.equals(type) && !JmeContext.Type.Canvas.equals(type)) { throw new IllegalArgumentException("Unsupported type '" + type.name() + "' provided"); } this.type = type; }
Example 4
Source File: LwjglWindow.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 5 votes |
public LwjglWindow(final JmeContext.Type type) { if (!SUPPORTED_TYPES.contains(type)) { throw new IllegalArgumentException("Unsupported type '" + type.name() + "' provided"); } this.type = type; }
Example 5
Source File: TestAppStates.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 5 votes |
@Override public void start(JmeContext.Type contextType){ AppSettings settings = new AppSettings(true); settings.setResolution(1024, 768); setSettings(settings); super.start(contextType); }
Example 6
Source File: LwjglWindowVR.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * @return Type.Display or Type.Canvas */ @Override public JmeContext.Type getType() { return type; }
Example 7
Source File: LwjglWindow.java From jmonkeyengine with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** * @return Type.Display or Type.Canvas */ @Override public JmeContext.Type getType() { return type; }