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