269 |
*/ |
*/ |
270 |
template<class Vertex, class TexBind> |
template<class Vertex, class TexBind> |
271 |
float renderChar(Char c, float x, float y, Vertex &vertex, |
float renderChar(Char c, float x, float y, Vertex &vertex, |
272 |
const TexBind &t) |
TexBind t) |
273 |
{ // returns new x pos |
{ // returns new x pos |
274 |
QuadGlyph &glyph = g[(unsigned)c]; |
QuadGlyph &glyph = g[(unsigned)c]; |
275 |
if(!glyph.valid()) return x; |
if(!glyph.valid()) return x; |
299 |
RandomRenderer &r, |
RandomRenderer &r, |
300 |
Iterator begin, Iterator end, |
Iterator begin, Iterator end, |
301 |
float x, float y, |
float x, float y, |
302 |
Vertex &vertex, const TexBind &t) { |
Vertex &vertex, TexBind t) { |
303 |
r.startRendering(); |
r.startRendering(); |
304 |
while(begin != end) { |
while(begin != end) { |
305 |
x = r.renderChar(*begin, x, y, vertex, t); |
x = r.renderChar(*begin, x, y, vertex, t); |