/** * Create the context. */ public void create() { create(false); }
/** * Destroy the context. */ public void destroy() { destroy(false); }
/** * Context internal create. */ public void internalCreate() { synchronized (createdLock) { created.set(true); createdLock.notifyAll(); } initContextFirstTime(); }
/** * De-initialize in the OpenGL thread. */ protected void deinitInThread() { listener.destroy(); destroyContext(); super.internalDestroy(); LOGGER.fine("Display destroyed."); }
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}", new Object[]{samples, supportedSamples}); samples = supportedSamples; } } return samples; }
super.internalCreate(); } catch (Exception ex) { try {