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/blendmode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lyt/materials/blendmode.cpp') diff --git a/lyt/materials/blendmode.cpp b/lyt/materials/blendmode.cpp index d02cd9b..bcbc234 100644 --- a/lyt/materials/blendmode.cpp +++ b/lyt/materials/blendmode.cpp @@ -21,14 +21,14 @@ LYTBlendMode::LYTBlendMode() { } -void LYTBlendMode::dumpToDebug() { +void LYTBlendMode::dumpToDebug() const { qDebug() << "LYTBlendMode @" << (void*)this; qDebug() << "srcFactor:" << srcFactor << "- destFactor:" << destFactor; qDebug() << "op:" << op << "- type:" << type; } -void LYTBlendMode::writeToDataStream(QDataStream &out) { +void LYTBlendMode::writeToDataStream(QDataStream &out) const { out << (quint8)type; out << (quint8)srcFactor; out << (quint8)destFactor; -- cgit v1.2.3