aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-examples
diff options
context:
space:
mode:
authorJoshua Slack <[email protected]>2017-09-24 11:32:29 -0500
committerJoshua Slack <[email protected]>2017-09-24 11:32:29 -0500
commit84c28f8f16f88be714c8bc8d467871fb8455655c (patch)
treefd1e1fa1b41f13f106aebaff27e68be268bdb2db /ardor3d-examples
parentccae5110e6a7b4a536732351e8179ec1bcfe69b1 (diff)
Make use of SharedLibraryLoader when example uses lwjgl
Diffstat (limited to 'ardor3d-examples')
-rw-r--r--ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java7
-rw-r--r--ardor3d-examples/src/main/java/com/ardor3d/example/ui/RotatingUIExample.java4
2 files changed, 8 insertions, 3 deletions
diff --git a/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java b/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java
index 30ca4dd..4f24172 100644
--- a/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java
+++ b/ardor3d-examples/src/main/java/com/ardor3d/example/ExampleBase.java
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2008-2012 Ardor Labs, Inc.
+ * Copyright (c) 2008-2017 Ardor Labs, Inc.
*
* This file is part of Ardor3D.
*
@@ -76,6 +76,7 @@ import com.ardor3d.renderer.queue.RenderBucketType;
import com.ardor3d.renderer.state.LightState;
import com.ardor3d.renderer.state.WireframeState;
import com.ardor3d.renderer.state.ZBufferState;
+import com.ardor3d.scene.state.lwjgl.util.SharedLibraryLoader;
import com.ardor3d.scenegraph.Node;
import com.ardor3d.scenegraph.event.DirtyType;
import com.ardor3d.util.Constants;
@@ -359,6 +360,10 @@ public abstract class ExampleBase implements Runnable, Updater, Scene {
// get our framework
if (prefs.getRenderer().startsWith("LWJGL")) {
+ try {
+ SharedLibraryLoader.load(true);
+ } catch (Exception e) {e.printStackTrace();}
+
final LwjglCanvasRenderer canvasRenderer = new LwjglCanvasRenderer(example);
example._canvas = new LwjglCanvas(settings, canvasRenderer);
example._physicalLayer = new PhysicalLayer(new LwjglKeyboardWrapper(), new LwjglMouseWrapper(),
diff --git a/ardor3d-examples/src/main/java/com/ardor3d/example/ui/RotatingUIExample.java b/ardor3d-examples/src/main/java/com/ardor3d/example/ui/RotatingUIExample.java
index b66b7a2..8251e99 100644
--- a/ardor3d-examples/src/main/java/com/ardor3d/example/ui/RotatingUIExample.java
+++ b/ardor3d-examples/src/main/java/com/ardor3d/example/ui/RotatingUIExample.java
@@ -3,7 +3,7 @@
*
* This file is part of Ardor3D.
*
- * Ardor3D is free software: you can redistribute it and/or modify it
+ * Ardor3D is free software: you can redistribute it and/or modify it
* under the terms of its license which may be found in the accompanying
* LICENSE file or at <http://www.ardor3d.com/LICENSE>.
*/
@@ -30,7 +30,7 @@ import com.ardor3d.scenegraph.controller.SpatialController;
import com.ardor3d.util.ReadOnlyTimer;
/**
- * Illustrates how to display and move GUI primitatives (e.g. RadioButton, Lable, TabbedPane) on a canvas.
+ * Illustrates how to display and move GUI primitives (e.g. RadioButton, Label, TabbedPane) on a canvas.
*/
@Purpose(htmlDescriptionKey = "com.ardor3d.example.ui.RotatingUIExample", //
thumbnailPath = "com/ardor3d/example/media/thumbnails/ui_RotatingUIExample.jpg", //