#include <msp/gl/texture2d.h>
#include <msp/datafile/objectloader.h>
#include "geometry.h"
+#include "mspgltk_api.h"
namespace Msp {
namespace GLtk {
/**
Stores a single graphical element. Graphics are used as parts of widgets.
*/
-class Graphic
+class MSPGLTK_API Graphic
{
public:
class Loader: public DataFile::CollectionObjectLoader<Graphic, Resources>
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; }