| 255 | |
| 256 | |
| 257 | void Font::drawText(std::string text, const Eigen::Vector2f& offset, unsigned int color) |
| 258 | { |
| 259 | TextCache* cache = buildTextCache(text, offset[0], offset[1], color); |
| 260 | renderTextCache(cache); |
| 261 | delete cache; |
| 262 | } |
| 263 | |
| 264 | void Font::renderTextCache(TextCache* cache) |
| 265 | { |