diff options
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; +} + |