]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/text.h
Use default member initializers for simple types
[libs/gl.git] / source / render / text.h
index dda0a4f0e8fe2be4c0fa7d5365300e52ddcbcdf5..c007c81f8aeaee0c9813dbf66915ccdd12814400 100644 (file)
@@ -5,7 +5,6 @@
 #include "mesh.h"
 #include "object.h"
 #include "objectinstance.h"
-#include "technique.h"
 
 namespace Msp {
 namespace GL {
@@ -38,9 +37,9 @@ private:
        Mesh mesh;
        Object object;
        Tag texture_slot;
-       float horz_align;
-       float vert_offset;
-       float width;
+       float horz_align = 0.0f;
+       float vert_offset = 0.0f;
+       float width = 0.0f;
 
 public:
        Text(const Font &, const Technique * = 0, Tag = Tag());