diff options
author | Kenneth Russel <[email protected]> | 2007-01-04 07:20:30 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2007-01-04 07:20:30 +0000 |
commit | e4daa5d745f3d084e0c7180a88597b2582131b63 (patch) | |
tree | 3e5b35a4b3ec92a74abaa11228fabca32e11eae0 /www | |
parent | 10c76681d1507fa527b59cb28bcde5d1c6a4fe18 (diff) |
With extensive help from Phil Race and Chris Campbell from the Java 2D
team, added a TextRenderer class which enables high-performance
rendering of bitmapped Java 2D fonts, with full Unicode support, into
arbitrary OpenGL drawables using a simple API. Builds on top of the
TextureRenderer class and its associated functionality; added
createAlphaOnlyRenderer() and other methods to enable the TextRenderer.
Caches rendering results on a string-by-string basis in an OpenGL
texture using a fully automatic least-recently-used algorithm for good
efficiency when rendering the same string or strings multiple times.
Uses a rectangle packing algorithm, currently housed in
com.sun.opengl.impl.packrect, for managing the positions of cached
strings on a larger OpenGL texture to avoid OpenGL pipeline state
changes. Added a TestTextRenderer demo which simply adds a moving text
string and frames-per-second counter to the Gears demo; more
sophisticated examples to come. (Some commented-out debugging code is
being temporarily left in the new demo, to be removed in the next
checkin, in order to have it in the version history.)
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@1067 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'www')
0 files changed, 0 insertions, 0 deletions