summaryrefslogtreecommitdiff
path: root/lyt/materials/texcoordgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lyt/materials/texcoordgen.cpp')
-rw-r--r--lyt/materials/texcoordgen.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/lyt/materials/texcoordgen.cpp b/lyt/materials/texcoordgen.cpp
new file mode 100644
index 0000000..9a47479
--- /dev/null
+++ b/lyt/materials/texcoordgen.cpp
@@ -0,0 +1,27 @@
+#include "texcoordgen.h"
+#include "../layout.h"
+
+LYTTexCoordGen::LYTTexCoordGen() {
+}
+
+void LYTTexCoordGen::dumpToDebug() {
+ qDebug() << "LYTTexCoordGen @" << (void*)this;
+ qDebug() << "GenType:" << genType << "- Mtx:" << mtx << "- Src:" << src;
+}
+
+
+void LYTTexCoordGen::writeToDataStream(QDataStream &out) {
+ out << (quint8)genType;
+ out << (quint8)src;
+ out << (quint8)mtx;
+ out.skipRawData(1); // padding
+}
+
+
+void LYTTexCoordGen::readFromDataStream(QDataStream &in) {
+ in >> (quint8&)genType;
+ in >> (quint8&)src;
+ in >> (quint8&)mtx;
+ in.skipRawData(1); // padding
+}
+