From 7db6adf7e9e178c83f0278124a3d6c786134b014 Mon Sep 17 00:00:00 2001 From: neoraider Date: Thu, 10 Apr 2008 22:47:04 +0000 Subject: zoomedit: * TexCoords saves number of used coordinates now. * All data classes save changes in the XML tree now. --- src/Data/TexCoords.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/Data/TexCoords.h') diff --git a/src/Data/TexCoords.h b/src/Data/TexCoords.h index 679c41c..06f8b59 100644 --- a/src/Data/TexCoords.h +++ b/src/Data/TexCoords.h @@ -25,10 +25,15 @@ namespace Data { class TexCoords { private: + unsigned int coordCount; float s, t, r, q; public: - TexCoords(float s0 = 0, float t0 = 0, float r0 = 0, float q0 = 0) : s(s0), t(t0), r(r0), q(q0) {} + TexCoords(unsigned int c = 2, float s0 = 0, float t0 = 0, float r0 = 0, float q0 = 0) + : coordCount(c), s(s0), t(t0), r(r0), q(q0) {} + + unsigned int getCoordCount() const {return coordCount;} + void setCoordCount(unsigned int c) {coordCount = c;} float getS() const {return s;} void setS(float s0) {s = s0;} -- cgit v1.2.3