Package com.jmex.awt

Examples of com.jmex.awt.JMECanvas


        // Create the 3D canvas
        myCanvas = DisplaySystem.getDisplaySystem( "lwjgl" ).createCanvas( width, height );
        myCanvas.setMinimumSize( new Dimension( 0, 0 ) ); // Make sure it is shrinkable
        myCursorChanger.setComponent( myCanvas );
        final JMECanvas jmeCanvas = ( (JMECanvas) myCanvas );

        // Set the renderer that renders the canvas contents
        myCanvasRenderer = new MyCanvasRenderer( width, height, my3DNode, myCanvas );
        jmeCanvas.setImplementor( myCanvasRenderer );

        // Add navigation gesture listeners to the created 3D canvas
        for ( NavigationGesture navigationGesture : myNavigationGestures )
        {
            registerNavigationGestureListener( navigationGesture );
View Full Code Here

TOP

Related Classes of com.jmex.awt.JMECanvas

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.