diff options
author | Sven Gothel <[email protected]> | 2012-10-19 17:13:14 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-19 17:13:14 +0200 |
commit | 0d353c8bec9cc0c9f3dc6326177f3022c920f677 (patch) | |
tree | 984e3e4bf884142edfd0c3a2b27cf9b66029bcf2 /src/jake2/render/opengl/GLDriver.java | |
parent | 7b18dfedf6c04f77a6032539f8b70d434375d139 (diff) |
Fix/Enhance NEWT ScreenMode (FS) integration, simplify NEWTWin creation
- Only list unique resolutions
- Use List<ScreenMode>
- Properly deactivateGLContext()/activateGLContext() for setMode(..)
Further:
- JoglES2Driver: Claim to have pointExt (FFP emul will follow up)
Diffstat (limited to 'src/jake2/render/opengl/GLDriver.java')
-rw-r--r-- | src/jake2/render/opengl/GLDriver.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jake2/render/opengl/GLDriver.java b/src/jake2/render/opengl/GLDriver.java index 6fda8cf..0967576 100644 --- a/src/jake2/render/opengl/GLDriver.java +++ b/src/jake2/render/opengl/GLDriver.java @@ -1,5 +1,7 @@ package jake2.render.opengl; +import java.util.List; + import javax.media.nativewindow.util.Dimension; import jake2.qcommon.xcommand_t; @@ -24,7 +26,7 @@ public interface GLDriver { void logNewFrame(); - ScreenMode[] getModeList(); + List<ScreenMode> getModeList(); void updateScreen(xcommand_t callback); |