Examples of LwjglCustomViewPort


Examples of org.terasology.engine.subsystem.lwjgl.LwjglCustomViewPort

        } catch (Exception e) {
            // If Nimbus is not available, you can set the GUI to another look and feel.
            logger.warn("Failed to set look and feel to Nimbus", e);
        }

        LwjglCustomViewPort lwjglCustomViewPort = new LwjglCustomViewPort();
        Collection<EngineSubsystem> subsystemList = Lists.<EngineSubsystem>newArrayList(new LwjglGraphics(), new LwjglTimer(), new LwjglAudio(), new LwjglInput(),
                lwjglCustomViewPort);

        engine = new TerasologyEngine(subsystemList);
        mainWindow = new MainWindow(this);
        lwjglCustomViewPort.setCustomViewport(mainWindow.getViewport());

        try {
            PathManager.getInstance().useDefaultHomePath();

            engine.setHibernationAllowed(false);
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.