diff options
author | Treeki <treeki@gmail.com> | 2010-10-07 23:48:57 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2010-10-07 23:48:57 +0200 |
commit | 532859713aaf0fdf482ee7d68676f6927a800eeb (patch) | |
tree | 304c7d60b76c0a91296087927d52360a627478c0 /lyt/materials/texcoordgen.cpp | |
parent | 5f6dad55d75cbe146ff7fefc899a02ccd39078ba (diff) | |
download | LayoutStudio-532859713aaf0fdf482ee7d68676f6927a800eeb.tar.gz LayoutStudio-532859713aaf0fdf482ee7d68676f6927a800eeb.zip |
implemented some more material stuff; added readme
Diffstat (limited to '')
-rw-r--r-- | lyt/materials/texcoordgen.cpp | 27 |
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 +} + |