From ebcc95da4c26369511caa90d89c5ed06e1e4853a Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Oct 2010 20:17:20 +0200 Subject: brlyt packing added, plus some changes in the existing API (mostly for const correctness). brlyt writing may still need some testing (especially for the material structs) --- lyt/materials/texsrt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lyt/materials/texsrt.cpp') diff --git a/lyt/materials/texsrt.cpp b/lyt/materials/texsrt.cpp index 7ffc83e..55ddb9c 100644 --- a/lyt/materials/texsrt.cpp +++ b/lyt/materials/texsrt.cpp @@ -21,7 +21,7 @@ LYTTexSRT::LYTTexSRT() { } -void LYTTexSRT::dumpToDebug() { +void LYTTexSRT::dumpToDebug() const { qDebug() << "LYTTexSRT @" << (void*)this; qDebug() << "Scale:" << xScale << "," << yScale; qDebug() << "Rotation:" << rotate; @@ -29,7 +29,7 @@ void LYTTexSRT::dumpToDebug() { } -void LYTTexSRT::writeToDataStream(QDataStream &out) { +void LYTTexSRT::writeToDataStream(QDataStream &out) const { out << (float)xTrans; out << (float)yTrans; out << (float)rotate; -- cgit v1.2.3