From 496263aac829dd0837ba65997b41ef2851022b3c Mon Sep 17 00:00:00 2001 From: Joshua Slack Date: Fri, 29 Sep 2017 17:25:24 -0500 Subject: Added centerOn method to UIComponent to make it simpler to center a component on another component or the hud. Fixed issue in sliders when min value is not 0. Clean up warnings. --- .../src/main/java/com/ardor3d/renderer/jogl/JoglRenderer.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ardor3d-jogl/src/main/java/com/ardor3d') diff --git a/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglRenderer.java b/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglRenderer.java index 1e15e65..cf0ffc5 100644 --- a/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglRenderer.java +++ b/ardor3d-jogl/src/main/java/com/ardor3d/renderer/jogl/JoglRenderer.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 . */ @@ -109,7 +109,7 @@ import com.jogamp.opengl.util.GLBuffers; /** * JoglRenderer provides an implementation of the Renderer interface using the JOGL API. - * + * * @see com.ardor3d.renderer.Renderer */ public class JoglRenderer extends AbstractRenderer { @@ -856,7 +856,6 @@ public class JoglRenderer extends AbstractRenderer { enabledTextures |= (2 << i); } - @SuppressWarnings("null") final FloatBufferData textureBufferData = textureCoords.get(i); final FloatBuffer textureBuffer = textureBufferData.getBuffer(); @@ -1160,7 +1159,6 @@ public class JoglRenderer extends AbstractRenderer { checkAndSetTextureArrayUnit(i, gl, rendRecord, caps); // grab a vboID and make sure it exists and is up to date. - @SuppressWarnings("null") final FloatBufferData data = textureCoords.get(i); final int vboID = setupVBO(data, context); @@ -1338,7 +1336,6 @@ public class JoglRenderer extends AbstractRenderer { } } - @SuppressWarnings("null") private void initializeInterleavedVBO(final RenderContext context, final FloatBufferData interleaved, final FloatBufferData vertexCoords, final FloatBufferData normalCoords, final FloatBufferData colorCoords, final List textureCoords, final int bufferSize) { @@ -1879,7 +1876,7 @@ public class JoglRenderer extends AbstractRenderer { /** * Start a new display list. All further renderer commands that can be stored in a display list are part of this new * list until {@link #endDisplayList()} is called. - * + * * @return id of new display list */ @Override -- cgit v1.2.3