diff options
Diffstat (limited to 'src/Data/Texture.h')
-rw-r--r-- | src/Data/Texture.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Data/Texture.h b/src/Data/Texture.h index b6a605a..e0cea59 100644 --- a/src/Data/Texture.h +++ b/src/Data/Texture.h @@ -33,6 +33,24 @@ class Texture { public: Texture(xmlpp::Element *node); + + const Glib::ustring& getId() const { + return id; + } + + void setId(const Glib::ustring &nid) { + id = nid; + texNode->set_attribute("id", nid); + } + + const Glib::ustring& getName() const { + return name; + } + + void setName(const Glib::ustring &nname) { + name = nname; + texNode->set_attribute("name", nname); + } }; } |