Package de.lessvoid.nifty.renderer.lwjgl.render

Examples of de.lessvoid.nifty.renderer.lwjgl.render.LwjglRenderDevice


    if (!LwjglInitHelper.initSubSystems("Nifty Controls Demonstation")) {
      System.exit(0);
    }

    // create Nifty and load default styles and controls
    Nifty nifty = new Nifty(new LwjglRenderDevice(), new OpenALSoundDevice(), LwjglInitHelper.getInputSystem(), new TimeProvider());
    nifty.loadStyleFile("nifty-default-styles.xml");
    nifty.loadControlFile("nifty-default-controls.xml");
    nifty.registerSound("intro", "sound/19546__tobi123__Gong_mf2.wav");
    nifty.registerMusic("credits", "sound/Loveshadow_-_Almost_Given_Up.ogg");
    nifty.registerMouseCursor("hand", "mouse-cursor-hand.png", 5, 4);
View Full Code Here


    StateManager.init();
    StateManager.push((State) (new Intro()));

    // create new Nifty userinterface
    nifty = new Nifty(
      new LwjglRenderDevice(false),
      new NullSoundDevice(),
      new NullInputSystem(),
      new LWJGLTimeProvider());
   
    // load GUI from file
View Full Code Here

TOP

Related Classes of de.lessvoid.nifty.renderer.lwjgl.render.LwjglRenderDevice

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.