X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphic.h;h=32a06864f9dcebf260c9f52e154b141e95660ba1;hb=81c4024fb6acf37df702a803dc4efdf82a81525a;hp=1ae0d5e22d8766a718bbd828329be7bb334663dd;hpb=5e8285302c1d04b631682a82d56c5afc46d20ad5;p=libs%2Fgltk.git diff --git a/source/graphic.h b/source/graphic.h index 1ae0d5e..32a0686 100644 --- a/source/graphic.h +++ b/source/graphic.h @@ -5,6 +5,7 @@ #include #include #include "geometry.h" +#include "mspgltk_api.h" namespace Msp { namespace GLtk { @@ -14,7 +15,7 @@ class Resources; /** Stores a single graphical element. Graphics are used as parts of widgets. */ -class Graphic +class MSPGLTK_API Graphic { public: class Loader: public DataFile::CollectionObjectLoader @@ -32,12 +33,11 @@ public: private: Sides border; Sides shadow; - const GL::Texture2D *texture; + const GL::Texture2D *texture = nullptr; Geometry slice; - bool repeat; + bool repeat = false; public: - Graphic(); const Sides &get_border() const { return border; } const Sides &get_shadow() const { return shadow; } const GL::Texture2D *get_texture() const { return texture; }