]> git.tdb.fi Git - libs/gl.git/blobdiff - source/text.h
Throw an exception if Texture*::allocate is called before storage
[libs/gl.git] / source / text.h
index ab1bfe930e8c8dc11509c35b1fc682967ef2e8fd..40c9b8500097d1591f8be68b1ad6b3234870729b 100644 (file)
@@ -46,7 +46,7 @@ public:
        const Mesh *get_mesh() const { return &mesh; }
 
        /** Sets technique to render with.  It should have a texture slot named
-       "diffusemap", which will be replaced with the font's texture. */
+       "diffuse_map", which will be replaced with the font's texture. */
        void set_technique(const Technique *);
 
        const Technique *get_technique() const { return object.get_technique(); }
@@ -76,7 +76,7 @@ public:
 
        float get_width() const { return width; }
 
-       virtual void render(Renderer &, const Tag &) const;
+       virtual void render(Renderer &, const Tag & = Tag()) const;
 
        operator const Object &() const { return object; }
 };