blob: 25e28cac9895dea4eab6c7a2b70003eaca68cec7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
}
|