diff options
-rw-r--r-- | make/build.xml | 2 | ||||
-rwxr-xr-x | src/classes/com/sun/opengl/util/j2d/Overlay.java (renamed from src/classes/com/sun/opengl/util/J2DOverlay.java) | 16 | ||||
-rwxr-xr-x | src/classes/com/sun/opengl/util/j2d/TextureRenderer.java (renamed from src/classes/com/sun/opengl/util/J2DTextureRenderer.java) | 6 |
3 files changed, 12 insertions, 12 deletions
diff --git a/make/build.xml b/make/build.xml index e1756dd76..c204b106f 100644 --- a/make/build.xml +++ b/make/build.xml @@ -264,7 +264,7 @@ <property name="javadoc.windowtitle" value="JOGL API -- JSR-231 Draft Public Review Specification" /> <property name="javadoc.overview" value="spec-overview.html" /> <property name="javadoc.spec.packagenames" value="javax.media.opengl,javax.media.opengl.glu" /> - <property name="javadoc.packagenames" value="${javadoc.spec.packagenames},com.sun.opengl.util,com.sun.opengl.util.texture,com.sun.opengl.util.texture.spi" /> + <property name="javadoc.packagenames" value="${javadoc.spec.packagenames},com.sun.opengl.util,com.sun.opengl.util.j2d,com.sun.opengl.util.texture,com.sun.opengl.util.texture.spi" /> <property name="javadoc.dev.packagenames.win32" value="com.sun.opengl.impl.windows" /> <property name="javadoc.dev.packagenames.x11" value="com.sun.opengl.impl.x11" /> <property name="javadoc.dev.packagenames.macosx" value="com.sun.opengl.impl.macosx" /> diff --git a/src/classes/com/sun/opengl/util/J2DOverlay.java b/src/classes/com/sun/opengl/util/j2d/Overlay.java index 3bb4de9ee..d427ab176 100755 --- a/src/classes/com/sun/opengl/util/J2DOverlay.java +++ b/src/classes/com/sun/opengl/util/j2d/Overlay.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.opengl.util; +package com.sun.opengl.util.j2d; import java.awt.Graphics2D; @@ -48,17 +48,17 @@ import com.sun.opengl.util.texture.*; making it easier to do things like draw text and images on top of an OpenGL scene while still maintaining reasonably good efficiency. For correct operation, the drawable should be - allocated with alpha bits enabled, as the J2DOverlay uses alpha + allocated with alpha bits enabled, as the Overlay uses alpha blending to make portions of itself transparent. */ -public class J2DOverlay { +public class Overlay { private GLDrawable drawable; - private J2DTextureRenderer renderer; + private TextureRenderer renderer; private boolean contentsLost; /** Creates a new Java 2D overlay on top of the specified GLDrawable. */ - public J2DOverlay(GLDrawable drawable) { + public Overlay(GLDrawable drawable) { this.drawable = drawable; } @@ -198,9 +198,9 @@ public class J2DOverlay { private void validateRenderer() { if (renderer == null) { - renderer = new J2DTextureRenderer(drawable.getWidth(), - drawable.getHeight(), - true); + renderer = new TextureRenderer(drawable.getWidth(), + drawable.getHeight(), + true); contentsLost = true; } else if (renderer.getWidth() != drawable.getWidth() || renderer.getHeight() != drawable.getHeight()) { diff --git a/src/classes/com/sun/opengl/util/J2DTextureRenderer.java b/src/classes/com/sun/opengl/util/j2d/TextureRenderer.java index de4aee9b8..552a66a3d 100755 --- a/src/classes/com/sun/opengl/util/J2DTextureRenderer.java +++ b/src/classes/com/sun/opengl/util/j2d/TextureRenderer.java @@ -37,7 +37,7 @@ * and developed by Kenneth Bradley Russell and Christopher John Kline. */ -package com.sun.opengl.util; +package com.sun.opengl.util.j2d; import java.awt.Dimension; import java.awt.Graphics2D; @@ -55,7 +55,7 @@ import com.sun.opengl.util.texture.*; that image to an OpenGL texture on demand. The resulting OpenGL texture can then be mapped on to a polygon for display. */ -public class J2DTextureRenderer { +public class TextureRenderer { // For now, we supply only a BufferedImage back-end for this // renderer. In theory we could use the Java 2D/JOGL bridge to fully // accelerate the rendering paths, but there are restrictions on @@ -81,7 +81,7 @@ public class J2DTextureRenderer { @param height the height of the texture to render into @param alpha whether to allocate an alpha channel for the texture */ - public J2DTextureRenderer(int width, int height, boolean alpha) { + public TextureRenderer(int width, int height, boolean alpha) { this.alpha = alpha; init(width, height); } |