From ca262978b95add2dae3434c5760ba6f2f1039325 Mon Sep 17 00:00:00 2001 From: Joshua Slack Date: Mon, 16 Oct 2017 10:48:44 -0500 Subject: 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. --- .../com/ardor3d/renderer/jogl/JoglContextCapabilities.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ardor3d-jogl/src/main/java/com') 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 . */ @@ -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"); -- cgit v1.2.3