aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2007-05-04 04:55:26 +0000
committerKenneth Russel <[email protected]>2007-05-04 04:55:26 +0000
commit6d4c57fa3a34b4c7c3921f14a8f9644aed34e77f (patch)
tree2d30a31e06a9e741e8c84f2560332b19b3228afe /src
parent1158ab31503351b8c8cfa50adad6b60a2e0d3f1b (diff)
Added note on usage of TextRenderer with TileRenderer
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1231 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rwxr-xr-xsrc/classes/com/sun/opengl/util/j2d/TextRenderer.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/classes/com/sun/opengl/util/j2d/TextRenderer.java b/src/classes/com/sun/opengl/util/j2d/TextRenderer.java
index d5207b9f2..2bbd2ee60 100755
--- a/src/classes/com/sun/opengl/util/j2d/TextRenderer.java
+++ b/src/classes/com/sun/opengl/util/j2d/TextRenderer.java
@@ -94,6 +94,15 @@ import com.sun.opengl.util.*;
internally will be cleaned up automatically when the OpenGL
context is destroyed. <P>
+ The TextRenderer can be used with the {@link
+ com.sun.opengl.util.TileRenderer TileRenderer} to produce
+ high-resolution screen shots. In this scenario, the TextRenderer's
+ {@link #begin3DRendering begin3DRendering}, {@link #draw3D draw3D}
+ and {@link #end3DRendering end3DRendering} methods must be used to
+ draw the text since the TileRenderer requires that the modelview
+ and projection matrices not be modified during the rendering
+ process. <P>
+
Internally, the renderer uses a rectangle packing algorithm to
pack multiple full Strings' rendering results (which are variable
size) onto a larger OpenGL texture. The internal backing store is