Examples of releaseCurrentContext()


Examples of com.ardor3d.framework.CanvasRenderer.releaseCurrentContext()

            // grab the graphics context so cleanup will work out.
            final CanvasRenderer cr = canvas.getCanvasRenderer();
            cr.makeCurrentContext();
            ContextGarbageCollector.doFinalCleanup(cr.getRenderer());
            canvas.close();
            cr.releaseCurrentContext();
            System.exit(0);

        } catch (final Throwable t) {
            System.err.println("Throwable caught in MainThread - exiting");
            t.printStackTrace(System.err);
View Full Code Here

Examples of com.ardor3d.framework.CanvasRenderer.releaseCurrentContext()

            }
            // grab the graphics context so cleanup will work out.
            final CanvasRenderer cr = _canvas.getCanvasRenderer();
            cr.makeCurrentContext();
            quit(cr.getRenderer());
            cr.releaseCurrentContext();
            if (QUIT_VM_ON_EXIT) {
                System.exit(0);
            }
        } catch (final Throwable t) {
            System.err.println("Throwable caught in MainThread - exiting");
View Full Code Here

Examples of com.ardor3d.framework.CanvasRenderer.releaseCurrentContext()

        // Done, do cleanup
        final CanvasRenderer cr = canvas.getCanvasRenderer();
        cr.makeCurrentContext();
        ContextGarbageCollector.doFinalCleanup(canvas.getCanvasRenderer().getRenderer());
        canvas.close();
        cr.releaseCurrentContext();
    }

    /**
     * Setup a native canvas and canvas renderer.
     *
 
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.