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/texsrt.cpp | |
parent | 5f6dad55d75cbe146ff7fefc899a02ccd39078ba (diff) | |
download | LayoutStudio-532859713aaf0fdf482ee7d68676f6927a800eeb.tar.gz LayoutStudio-532859713aaf0fdf482ee7d68676f6927a800eeb.zip |
implemented some more material stuff; added readme
Diffstat (limited to 'lyt/materials/texsrt.cpp')
-rw-r--r-- | lyt/materials/texsrt.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lyt/materials/texsrt.cpp b/lyt/materials/texsrt.cpp new file mode 100644 index 0000000..25e28ca --- /dev/null +++ b/lyt/materials/texsrt.cpp @@ -0,0 +1,31 @@ +#include "texsrt.h" +#include "../layout.h" + +LYTTexSRT::LYTTexSRT() { +} + +void LYTTexSRT::dumpToDebug() { + qDebug() << "LYTTexSRT @" << (void*)this; + qDebug() << "Scale:" << xScale << "," << yScale; + qDebug() << "Rotation:" << rotate; + qDebug() << "Translation:" << xTrans << "," << yTrans; +} + + +void LYTTexSRT::writeToDataStream(QDataStream &out) { + out << (float)xTrans; + out << (float)yTrans; + out << (float)rotate; + out << (float)xScale; + out << (float)yScale; +} + + +void LYTTexSRT::readFromDataStream(QDataStream &in) { + in >> (float&)xTrans; + in >> (float&)yTrans; + in >> (float&)rotate; + in >> (float&)xScale; + in >> (float&)yScale; +} + |