public void create() { create(false); }
public void destroy() { destroy(false); }
protected int getNumSamplesToUse() { int samples = 0; if (settings.getSamples() > 1) { samples = settings.getSamples(); int supportedSamples = determineMaxSamples(samples); if (supportedSamples < samples) { logger.log(Level.WARNING, "Couldn''t satisfy antialiasing samples requirement: x{0}. " + "Video hardware only supports: x{1}", new Object[]{samples, supportedSamples}); samples = supportedSamples; } } return samples; }
public void internalCreate() { timer = new LwjglTimer(); synchronized (createdLock) { created.set(true); createdLock.notifyAll(); } if (renderable.get()) { initContextFirstTime(); } else { assert getType() == Type.Canvas; } }
/** * De-initialize in the OpenGL thread. */ protected void deinitInThread(){ destroyContext(); listener.destroy(); logger.fine("Display destroyed."); super.internalDestroy(); }
super.internalCreate(); } catch (Exception ex){ try {
public void internalCreate() { synchronized (createdLock) { created.set(true); createdLock.notifyAll(); } initContextFirstTime(); }
for (long platformId : getPlatforms()) { platforms.add(new LwjglPlatform(platformId)); long context = createContext(platform.getPlatform(), deviceIds, window); clContext = new com.jme3.opencl.lwjgl.LwjglContext(context, (List<LwjglDevice>) choosenDevices); } catch (final Exception ex) {
/** * De-initialize in the OpenGL thread. */ protected void deinitInThread() { listener.destroy(); destroyContext(); super.internalDestroy(); LOGGER.fine("Display destroyed."); }
public void internalCreate(){ timer = new LwjglTimer(); synchronized (createdLock){ created.set(true); createdLock.notifyAll(); } if (renderable.get()){ initContextFirstTime(); }else{ assert getType() == Type.Canvas; } }
public void internalCreate() { synchronized (createdLock) { created.set(true); createdLock.notifyAll(); } initContextFirstTime(); }
for (long p : getPlatforms()) { platforms.add(new LwjglPlatform(p)); long c = createContext(platform.getPlatform(), devices, window); clContext = new com.jme3.opencl.lwjgl.LwjglContext(c, (List<LwjglDevice>) choosenDevices); } catch (final Exception ex) {
protected void deinitInThread(){ renderable.set(false); listener.destroy(); renderer.cleanup(); pbuffer.destroy(); logger.fine("Offscreen buffer destroyed."); super.internalDestroy(); }
super.internalCreate(); listener.initialize();
public void destroy() { destroy(false); }
public void create() { create(false); }
protected int getNumSamplesToUse() { int samples = 0; if (settings.getSamples() > 1) { samples = settings.getSamples(); final int supportedSamples = determineMaxSamples(); if (supportedSamples < samples) { logger.log(Level.WARNING, "Couldn't satisfy antialiasing samples requirement: x{0}. " + "Video hardware only supports: x{1}", APIUtil.toArray(samples, supportedSamples)); samples = supportedSamples; } } return samples; }
/** * De-initialize in the OpenGL thread. */ protected void deinitInThread() { listener.destroy(); destroyContext(); super.internalDestroy(); LOGGER.fine("Display destroyed."); }
super.internalCreate(); } catch (Exception ex){ try {