114 |
if(dbg) pa("Addtolistgl text "+text); |
if(dbg) pa("Addtolistgl text "+text); |
115 |
if(ht == null) { |
if(ht == null) { |
116 |
float sh = 2.0f/style.getHeight(1); |
float sh = 2.0f/style.getHeight(1); |
117 |
float sw = 2.0f/style.getWidth(text, 1); |
// float sw = 2.0f/style.getWidth(text, 1); |
118 |
GLTextStyle gls = (GLTextStyle)style; |
GLTextStyle gls = (GLTextStyle)style; |
119 |
ht = GLRen.createHorizText2( |
ht = GLRen.createHorizText2( |
120 |
gls.theFont, |
gls.theFont, |
121 |
text, |
text, |
122 |
-1, -1, 0, |
-1, -1, 0, |
123 |
sw * gls.fontScale); |
sh); |
124 |
} |
} |
125 |
if(cl == null) { |
if(cl == null) { |
126 |
cl = GLRen.createCallList("Color 0 0 0 1"); |
cl = GLRen.createCallList("Color 0 0 0 1"); |