/[libvob]/libvob/org/nongnu/libvob/vobs/TextVob.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/vobs/TextVob.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by tjl, Mon Mar 17 12:48:19 2003 UTC revision 1.3 by tjl, Fri Mar 21 09:42:51 2003 UTC
# Line 191  String rcsid = "$Id$"; Line 191  String rcsid = "$Id$";
191          return stop;          return stop;
192      }      }
193    
194        public Vob getPlainRenderableForBenchmarking() {
195            if(ht == null) {
196                GLTextStyle gls = (GLTextStyle)style;
197                ht = GLRen.createText1(
198                        gls.theFont,
199                        text,
200                        (baselined ? 1 : gls.theFont.getYOffs()),
201                        0);
202            }
203            return ht;
204        }
205    
206      private Vob setColor() {      private Vob setColor() {
207          if(setColor == null) {          if(setColor == null) {
208              setColor = GLCache.getCallList(this.textColor == null ? "" : this.textColor);              setColor = GLCache.getCallList(this.textColor == null ? "" : this.textColor);
# Line 206  String rcsid = "$Id$"; Line 218  String rcsid = "$Id$";
218      private Vob ht;      private Vob ht;
219      public int putGL(VobScene vs, int coordsys1) {      public int putGL(VobScene vs, int coordsys1) {
220          if(dbg) pa("Addtolistgl text "+text);          if(dbg) pa("Addtolistgl text "+text);
         if(ht == null) {  
             GLTextStyle gls = (GLTextStyle)style;  
             ht = GLRen.createText1(  
                     gls.theFont,  
                     text,  
                     (baselined ? 1 : gls.theFont.getYOffs()),  
                     0);  
         }  
221          vs.map.put(getStartCode());          vs.map.put(getStartCode());
222          vs.map.put(setColor());          vs.map.put(setColor());
223          vs.map.put(ht, coordsys1);          vs.map.put(getPlainRenderableForBenchmarking(), coordsys1);
224          vs.map.put(getStopCode());          vs.map.put(getStopCode());
225          return 0;          return 0;
226      }      }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26