diff options
author | Kenneth Russel <[email protected]> | 2007-05-04 04:55:26 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-05-04 04:55:26 +0000 |
commit | 6d4c57fa3a34b4c7c3921f14a8f9644aed34e77f (patch) | |
tree | 2d30a31e06a9e741e8c84f2560332b19b3228afe /src/classes/com/sun/opengl/util/j2d/TextRenderer.java | |
parent | 1158ab31503351b8c8cfa50adad6b60a2e0d3f1b (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/classes/com/sun/opengl/util/j2d/TextRenderer.java')
-rwxr-xr-x | src/classes/com/sun/opengl/util/j2d/TextRenderer.java | 9 |
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 |