Examples of LwjglContextCapabilities


Examples of com.ardor3d.renderer.lwjgl.LwjglContextCapabilities

        _scene = scene;
    }

    @MainThread
    protected ContextCapabilities createContextCapabilities() {
        return new LwjglContextCapabilities(GLContext.getCapabilities());
    }
View Full Code Here

Examples of com.ardor3d.renderer.lwjgl.LwjglContextCapabilities

        } catch (final LWJGLException ex) {
            ex.printStackTrace();
        }

        // Set up our Ardor3D context and capabilities objects
        final LwjglContextCapabilities caps = new LwjglContextCapabilities(GLContext.getCapabilities());
        final RenderContext currentContext = new RenderContext(this, caps, null);

        if (!caps.isFBOSupported()) {
            throw new Ardor3dException("Headless requires FBO support.");
        }

        if (caps.isFBOMultisampleSupported() && caps.isFBOBlitSupported() && _settings.getSamples() > 0) {
            _useMSAA = true;
        }

        // Init our FBO.
        final IntBuffer buffer = BufferUtils.createIntBuffer(1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.