Package com.ardor3d.framework.jogl

Examples of com.ardor3d.framework.jogl.JoglNewtAwtCanvas


        _settings = getSettings();
        setLayout(new BorderLayout(0, 0));
        try {
            TextureRendererFactory.INSTANCE.setProvider(new JoglTextureRendererProvider());
            final JoglCanvasRenderer canvasRenderer = new JoglCanvasRenderer(this);
            _glCanvas = new JoglNewtAwtCanvas(_settings, canvasRenderer) {
                private static final long serialVersionUID = 1L;

                @Override
                public final void removeNotify() {
                    stopJOGL();
View Full Code Here


    private static void addCanvas(final JFrame frame, final ExampleScene scene, final LogicalLayer logicalLayer,
            final FrameHandler frameWork) throws Exception {
        final JoglCanvasRenderer canvasRenderer = new JoglCanvasRenderer(scene);

        final DisplaySettings settings = new DisplaySettings(400, 300, 24, 0, 0, 16, 0, 0, false, false);
        final JoglNewtAwtCanvas theCanvas = new JoglNewtAwtCanvas(settings, canvasRenderer);

        frame.add(theCanvas);

        _showCursor1.put(theCanvas, true);

        theCanvas.setSize(new Dimension(400, 300));
        theCanvas.setVisible(true);

        final AwtKeyboardWrapper keyboardWrapper = new AwtKeyboardWrapper(theCanvas);
        final AwtFocusWrapper focusWrapper = new AwtFocusWrapper(theCanvas);
        final AwtMouseManager mouseManager = new AwtMouseManager(theCanvas);
        final AwtMouseWrapper mouseWrapper = new AwtMouseWrapper(theCanvas, mouseManager);
View Full Code Here

TOP

Related Classes of com.ardor3d.framework.jogl.JoglNewtAwtCanvas

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.