List of usage examples for com.badlogic.gdx.utils SharedLibraryLoader SharedLibraryLoader
public SharedLibraryLoader(String nativesJar)
From source file:com.badlogic.gdx.jglfw.tests.JglfwDebugStarter.java
License:Apache License
public static void main(String[] argv) { // this is only here for me to debug native code faster new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio"); new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image"); new SharedLibraryLoader("../../extensions/gdx-freetype/libs/gdx-freetype-natives.jar").load("gdx-freetype"); new SharedLibraryLoader( "../../extensions/gdx-controllers/gdx-controllers-desktop/libs/gdx-controllers-desktop-natives.jar") .load("gdx-controllers-desktop"); new SharedLibraryLoader("../../gdx/libs/gdx-natives.jar").load("gdx"); GdxTest test = new SuperKoalio(); JglfwApplicationConfiguration config = new JglfwApplicationConfiguration(); config.vSync = true;// w w w . j a va 2s .com new JglfwApplication(test, config); }
From source file:com.badlogic.gdx.tests.jogl.JoglDebugStarter.java
License:Apache License
public static void main(String[] argv) { // this is only here for me to debug native code faster new SharedLibraryLoader("../../extensions/gdx-audio/libs/gdx-audio-natives.jar").load("gdx-audio"); new SharedLibraryLoader("../../extensions/gdx-image/libs/gdx-image-natives.jar").load("gdx-image"); new SharedLibraryLoader("../../extensions/gdx-freetype/libs/gdx-freetype-natives.jar").load("gdx-freetype"); new SharedLibraryLoader("../../gdx/libs/gdx-natives.jar").load("gdx"); GdxTest test = new Mpg123Test(); JoglApplicationConfiguration config = new JoglApplicationConfiguration(); config.useGL20 = test.needsGL20();//w w w .j a v a2 s . co m new JoglApplication(test, config); }
From source file:it.alcacoop.backgammon.Main.java
License:Open Source License
public static void main(String[] args) { LwjglApplicationConfiguration cfg = new LwjglApplicationConfiguration(); cfg.title = "GnuBackgammon"; cfg.width = 800;/*from w ww . j a v a2 s . c o m*/ cfg.height = 480; instance = new Main(); new LwjglApplication(new GnuBackgammon(instance), cfg); new SharedLibraryLoader("libs/gnubg.jar").load("gnubg"); String s = System.getProperty("user.dir"); data_dir = s; s += "/libs/"; AICalls.Locking.InitializeEnvironment(s); mScriptConsole = new JConsole(); bsh = new Interpreter(mScriptConsole); mScriptEditor = new BeanShellEditor(); new Thread(bsh).start(); setBsh("devconsole", mScriptConsole); setBsh("deveditor", mScriptEditor); setBsh("bsh", bsh); runBsh(Gdx.files.internal("libs/devtools.bsh").path()); }