diff options
author | Rami Santina <[email protected]> | 2011-04-08 17:41:45 +0300 |
---|---|---|
committer | Rami Santina <[email protected]> | 2011-04-08 17:41:45 +0300 |
commit | deca38fce30548d0ee624b7c747daacafca37f24 (patch) | |
tree | 064bb84d341797c581e0efd53f36009dd4e3fa90 /src/jogl/classes/jogamp/graph/curve/text | |
parent | 65c77a5a8375df3c15fcf36384b700ca03c485f9 (diff) |
TextRenderer - createString exposed; Renderer - added scale();
createString function is now public to be able to create a string
without initializing textRenderer. Temp change, should be cleaned up.
added missing scale transformation to renderer pmvmatrix;
added glyphstring.getBounds() so not to use font.getStringBounds.
since it Would be a redundant call.
Diffstat (limited to 'src/jogl/classes/jogamp/graph/curve/text')
-rw-r--r-- | src/jogl/classes/jogamp/graph/curve/text/GlyphString.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/graph/curve/text/GlyphString.java b/src/jogl/classes/jogamp/graph/curve/text/GlyphString.java index 808e3a415..7c7bb816f 100644 --- a/src/jogl/classes/jogamp/graph/curve/text/GlyphString.java +++ b/src/jogl/classes/jogamp/graph/curve/text/GlyphString.java @@ -29,6 +29,7 @@ package jogamp.graph.curve.text; import java.util.ArrayList; +import com.jogamp.graph.geom.AABBox; import com.jogamp.graph.geom.Vertex; import com.jogamp.graph.geom.Triangle; import com.jogamp.graph.geom.opengl.SVertex; @@ -160,4 +161,8 @@ public class GlyphString { public void destroy(){ region.destroy(); } + + public AABBox getBounds(){ + return region.getBounds(); + } } |