continue; if (settings.getColorDepth() != 0 && modes[i].getBitsPerPixel() != settings.getColorDepth()) { logger.fine("DisplayMode " + modes[i] + ": Bits per pixel != " + settings.getColorDepth()); continue;
if ((settings.getColorDepth() != 32) && (settings.getColorDepth() != 16) && (settings.getColorDepth() != 24) && (settings.getColorDepth() != -1)) { throw new Ardor3dException("Invalid pixel depth: " + settings.getColorDepth()); caps.setStereo(settings.isStereo()); caps.setStencilBits(settings.getStencilBits()); switch (settings.getColorDepth()) { case 32: case 24:
.withBitsPerPixel(_settings.getColorDepth()).withStereo(_settings.isStereo()); _pbuffer = new Pbuffer(_width, _height, format, _texture, null); final Object contextKey = _pbuffer;
public LwjglAwtCanvas(final DisplaySettings settings, final LwjglCanvasRenderer canvasRenderer) throws LWJGLException { super(new PixelFormat(settings.getColorDepth(), settings.getAlphaBits(), settings.getDepthBits(), settings .getStencilBits(), settings.getSamples()).withStereo(settings.isStereo())); _settings = settings; _canvasRenderer = canvasRenderer; _canvasRenderer.setCanvasCallback(new LwjglCanvasCallback() { @Override public void makeCurrent() throws LWJGLException { LwjglAwtCanvas.this.makeCurrent(); } @Override public void releaseContext() throws LWJGLException { LwjglAwtCanvas.this.releaseContext(); } }); }
if (null == mode) { throw new Ardor3dException("Bad display mode (w/h/bpp/freq): " + _settings.getWidth() + " / " + _settings.getHeight() + " / " + _settings.getColorDepth() + " / " + _settings.getFrequency());
if (currentDisplayMode.getWidth() == _settings.getWidth() && currentDisplayMode.getHeight() == _settings.getHeight()) { if (currentDisplayMode.getBitDepth() == _settings.getColorDepth()) { if (currentDisplayMode.getRefreshRate() == _settings.getFrequency()) { matchingDisplayMode = currentDisplayMode;