diff options
author | Sven Gothel <[email protected]> | 2012-10-12 15:18:30 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-12 15:18:30 +0200 |
commit | 04d63492cdb87d49e0f10b8f8744193755e344f7 (patch) | |
tree | 1afb8ae81a23aa3265ece2784621d737ea89895a /src/jake2/render/opengl/NEWTWin.java | |
parent | f5612e7dfc635359f15b402c2ee9022a5e703a9d (diff) |
Enabling GL2ES1 and GL2ES2 driver, using JOGL's ImmModeSink and FixedFunctionPipeline to complete each profilejogl2_es2
GL2ES1 uses ImmModeSink
GL2ES2 uses ImmModeSink and FixedFunctionPipeline
TODO: Updated JOGL contained binaries w/ next aggregated build (please use the source until then)
Diffstat (limited to 'src/jake2/render/opengl/NEWTWin.java')
-rw-r--r-- | src/jake2/render/opengl/NEWTWin.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jake2/render/opengl/NEWTWin.java b/src/jake2/render/opengl/NEWTWin.java index 662dbc7..833376c 100644 --- a/src/jake2/render/opengl/NEWTWin.java +++ b/src/jake2/render/opengl/NEWTWin.java @@ -73,9 +73,10 @@ public class NEWTWin { * @param dim * @param mode * @param fullscreen + * @param driverName TODO * @return enum Base.rserr_t */ - public int setMode(Dimension dim, int mode, boolean fullscreen) { + public int setMode(GLProfile glp, Dimension dim, int mode, boolean fullscreen, String driverName) { final Dimension newDim = new Dimension(); @@ -110,8 +111,8 @@ public class NEWTWin { } if(null == window) { - window = GLWindow.create(screen, new GLCapabilities(GLProfile.get(GLProfile.GL2))); - window.setTitle("Jake2 (jogl-gl2-newt)"); + window = GLWindow.create(screen, new GLCapabilities(glp)); + window.setTitle("Jake2 ("+driverName+"-newt-"+glp.getName().toLowerCase()+")"); } if (oldDisplayMode == null) { |