float width;
public:
- Text(const Font &, const Technique * = 0);
+ Text(const Font &, const Technique * = 0, const std::string & = std::string());
const Mesh *get_mesh() const { return &mesh; }
- /** Sets technique to render with. It should have a texture slot named
- "diffuse_map", which will be replaced with the font's texture. */
- void set_technique(const Technique *);
+ /** Sets technique to render with, replacing the given texture slot with
+ the font texture. If no texture slot is specified, heuristics are used to
+ choose a suitable one. */
+ void set_technique(const Technique *, const std::string & = std::string());
const Technique *get_technique() const { return object.get_technique(); }