diff options
author | Sven Gothel <[email protected]> | 2012-10-08 10:44:05 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-08 10:44:05 +0200 |
commit | f5612e7dfc635359f15b402c2ee9022a5e703a9d (patch) | |
tree | 0b54287f72b87a2693f38ed308195e928311a093 /src/jake2/render/Renderer.java | |
parent | 3119458b32c8620f971ba44488389ddf03b2d705 (diff) |
Simple NEWT port: Remove AWT dependencies in Jake2 / JOGL / Fast (default mode) - Prepare for ES2NEWT
- Removed AWT init dialog, replaced w/ UI less auto install if n/a @ default location:
$HOME/Jake2/baseq2
- JOGL GL2 Renderer 'joglgl2'
- JOGL ES2 Renderer 'jogles2' (TBD)
- Replaced JOGLKBD (AWT) w/ NEWTKBD
- JOGL* Renderer using NEWT
Diffstat (limited to 'src/jake2/render/Renderer.java')
-rw-r--r-- | src/jake2/render/Renderer.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/jake2/render/Renderer.java b/src/jake2/render/Renderer.java index a283640..bb4b250 100644 --- a/src/jake2/render/Renderer.java +++ b/src/jake2/render/Renderer.java @@ -39,7 +39,7 @@ public class Renderer { static RenderAPI fastRenderer = new jake2.render.fast.Misc(); static RenderAPI basicRenderer = new jake2.render.basic.Misc(); - static Vector drivers = new Vector(2); + static Vector drivers = new Vector(3); static { try { @@ -50,8 +50,15 @@ public class Renderer { // ignore the lwjgl driver if runtime not in classpath } try { - Class.forName("javax.media.opengl.GL"); - Class.forName("jake2.render.JoglRenderer"); + Class.forName("javax.media.opengl.GL2ES2"); + Class.forName("jake2.render.JoglES2Renderer"); + } catch (ClassNotFoundException e) { + // ignore the new jogl driver if runtime not in classpath + e.printStackTrace(); + } + try { + Class.forName("javax.media.opengl.GL2"); + Class.forName("jake2.render.JoglGL2Renderer"); } catch (ClassNotFoundException e) { // ignore the new jogl driver if runtime not in classpath e.printStackTrace(); @@ -68,7 +75,6 @@ public class Renderer { } if (!drivers.contains(impl)) { System.err.println("Add driver: "+impl+", "+impl.getName()); - Thread.dumpStack(); drivers.add(impl); } } |