diff options
author | Joshua Slack <[email protected]> | 2017-10-16 10:48:44 -0500 |
---|---|---|
committer | Joshua Slack <[email protected]> | 2017-10-16 12:21:24 -0500 |
commit | ca262978b95add2dae3434c5760ba6f2f1039325 (patch) | |
tree | 3fd2df0fc47d2201d8b1d675e0c0ed80e573a9cc /ardor3d-jogl/src/main/java/com | |
parent | 3b324b3c4dde3f18c255c59817f14f12f6467dc7 (diff) |
Added some additional caps detection + divorced UIContainer standin texture size from camera. This should help in serveral situations such as window size being tiny during init, or different contexts having different window sizes.
Diffstat (limited to 'ardor3d-jogl/src/main/java/com')
-rw-r--r-- | ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglContextCapabilities.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglContextCapabilities.java b/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglContextCapabilities.java index 5ee1cb8..1151533 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglContextCapabilities.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglContextCapabilities.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>. */ @@ -126,6 +126,15 @@ public class JoglContextCapabilities extends ContextCapabilities { gl.glGetIntegerv(GL.GL_MAX_TEXTURE_SIZE, buf); _maxTextureSize = buf.get(0); + // max texture size. + gl.glGetIntegerv(GL.GL_MAX_RENDERBUFFER_SIZE, buf); + _maxRenderBufferSize = buf.get(0); + + // max viewport size. + gl.glGetIntegerv(GL.GL_MAX_VIEWPORT_DIMS, buf); + _maxViewportWidth = buf.get(0); + _maxViewportHeight = buf.get(1); + // Check for support of multitextures. _supportsMultiTexture = gl.isExtensionAvailable("GL_ARB_multitexture"); |