Package org.xith3d.render

Examples of org.xith3d.render.Canvas3DJPanel


       
        /*
         * Canvas
         */
        JPanel panel = new JPanel();
        Canvas3DJPanel canvasPanel = new Canvas3DJPanel( OpenGLLayer.JOGL_AWT );
        panel.add(canvasPanel);
        canvasPanel.setSize(800, 600);
        canvasPanel.setBounds(0, 0, 800, 600);
        tabbedPane.addTab(Messages.getString("DigiBotsApplication.0"), panel); //$NON-NLS-1$
        canvasPanel.getCanvas().setBackgroundColor(Colorf.WHITE);
        canvasPanel.enableLighting();
       
        /*
         * Environment
         */
        this.env = new Xith3DEnvironment(this);
        env.addCanvas(canvasPanel);
       
        /*
         * Texture filters
         */
        Texture.setDefaultFilter(TextureFilter.TRILINEAR);
       
        /*
         * Input
         */
        InputSystem.getInstance().registerNewKeyboardAndMouse(canvasPanel.getCanvas().getPeer());
       
        /*
         * Render passes
         */
        BranchGroup perspGroup = env.addPerspectiveBranch().getBranchGroup();
View Full Code Here

TOP

Related Classes of org.xith3d.render.Canvas3DJPanel

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.