21 |
|
|
22 |
TextRenderer *rend; |
TextRenderer *rend; |
23 |
str text; |
str text; |
24 |
|
float yoffs; |
25 |
int flags; |
int flags; |
26 |
|
|
27 |
template<class F> void params(F &f) { |
template<class F> void params(F &f) { |
28 |
f(rend, text, flags); |
f(rend, text, yoffs, flags); |
29 |
} |
} |
30 |
|
|
31 |
template<class Coords> struct Vertexer { |
template<class Coords> struct Vertexer { |
47 |
} |
} |
48 |
Vertexer<T> vertexer(t); |
Vertexer<T> vertexer(t); |
49 |
GLMosaicText::renderIter(*rend, text.begin(), text.end(), |
GLMosaicText::renderIter(*rend, text.begin(), text.end(), |
50 |
0,0, |
0,yoffs, |
51 |
vertexer, (flags & 1 ? |
vertexer, (flags & 1 ? |
52 |
GLMosaicText::normalBindTexture_01 : |
GLMosaicText::normalBindTexture_01 : |
53 |
GLMosaicText::normalBindTexture) |
GLMosaicText::normalBindTexture) |