Package com.ardor3d.framework

Examples of com.ardor3d.framework.DisplaySettings


    public static void main(String[] args) {
        // Ask for properties
        final PropertiesGameSettings prefs = getAttributes(new PropertiesGameSettings("ardorSettings.properties", null));

        // Convert to DisplayProperties (XXX: maybe merge these classes?)
        final DisplaySettings settings = new DisplaySettings(prefs.getWidth(), prefs.getHeight(), prefs.getDepth(),
                prefs.getFrequency(),
                // alpha
                _minAlphaBits != -1 ? _minAlphaBits : prefs.getAlphaBits(),
                // depth
                _minDepthBits != -1 ? _minDepthBits : prefs.getDepthBits(),
View Full Code Here


        return createTextureRenderer(width, height, 0, 0, renderer, caps);
    }

    public TextureRenderer createTextureRenderer(final int width, final int height, final int depthBits,
            final int samples, final Renderer renderer, final ContextCapabilities caps) {
        return createTextureRenderer(new DisplaySettings(width, height, depthBits, samples), false, renderer, caps);
    }
View Full Code Here

        getParent().layout();
        final Point size = getSize();

        setCurrent();

        final DisplaySettings settings = new DisplaySettings(Math.max(size.x, 1), Math.max(size.y, 1), 0, 0,
                _passedGLData.alphaSize, _passedGLData.depthSize, _passedGLData.stencilSize, _passedGLData.samples,
                false, _passedGLData.stereo);

        _canvasRenderer.init(settings, false); // false - do not do back buffer swap, swt will do that.
        _inited = true;
View Full Code Here

        return createTextureRenderer(width, height, 0, 0, renderer, caps);
    }

    public TextureRenderer createTextureRenderer(final int width, final int height, final int depthBits,
            final int samples, final Renderer renderer, final ContextCapabilities caps) {
        return createTextureRenderer(new DisplaySettings(width, height, depthBits, samples), false, renderer, caps);
    }
View Full Code Here

     * Constructs the example class, creating our frame, label, bufferedimage and the headless canvas.
     */
    public LwjglHeadlessExample() {
        // Setup our headless canvas for rendering.
        // settings = new DisplaySettings(800, 600, 0, 0, 0, 16, 0, 4, false, false); // use this to try MSAA
        settings = new DisplaySettings(800, 600, 0, 0, 0, 16, 0, 0, false, false);
        canvas = new LwjglHeadlessCanvas(settings, this);
        canvas.getRenderer().setBackgroundColor(ColorRGBA.BLACK_NO_ALPHA);

        // Set up an image to show our 3d content in.
        labelImage = new BufferedImage(settings.getWidth(), settings.getHeight(), BufferedImage.TYPE_INT_ARGB);
View Full Code Here

     *
     * @return the canvas.
     */
    private LwjglCanvas initLwjgl() {
        final LwjglCanvasRenderer canvasRenderer = new LwjglCanvasRenderer(this);
        final DisplaySettings settings = new DisplaySettings(800, 600, 24, 0, 0, 8, 0, 0, false, false);
        return new LwjglCanvas(settings, canvasRenderer);
    }
View Full Code Here

     *
     * @return the canvas.
     */
    private JoglCanvas initJogl() {
        final JoglCanvasRenderer canvasRenderer = new JoglCanvasRenderer(this);
        final DisplaySettings settings = new DisplaySettings(800, 600, 24, 0, 0, 8, 0, 0, false, false);
        return new JoglCanvas(canvasRenderer, settings);
    }
View Full Code Here

            throw new RuntimeException("Unable to create display");
        }
    }

    protected DisplaySettings getSettings() {
        return new DisplaySettings(getWidth(), getHeight(), 8, 0);
    }
View Full Code Here

        GameTaskQueueManager.getManager(_canvas.getCanvasRenderer().getRenderContext()).render(
                new RendererCallable<Void>() {
                    @Override
                    public Void call() throws Exception {
                        final DisplaySettings settings = new DisplaySettings(256, 256, 24, 0, 0, 24, 0, 0, false, false);
                        texRend = TextureRendererFactory.INSTANCE.createTextureRenderer(settings, false, getRenderer(),
                                ContextManager.getCurrentContext().getCapabilities());

                        texRend.getCamera().setFrustum(.1, 10, -.1, .1, .1, -.1);
View Full Code Here

            throw new RuntimeException("Unable to create display");
        }
    }

    protected DisplaySettings getSettings() {
        return new DisplaySettings(getWidth(), getHeight(), 8, 0);
    }
View Full Code Here

TOP

Related Classes of com.ardor3d.framework.DisplaySettings

Copyright © 2018 www.massapicom. 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.