diff options
author | Treeki <treeki@gmail.com> | 2010-10-14 20:17:20 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2010-10-14 20:17:20 +0200 |
commit | ebcc95da4c26369511caa90d89c5ed06e1e4853a (patch) | |
tree | 6ed445f0204a6e6615088d135c4b29c4309077a4 /lyt/materials/chanctrl.cpp | |
parent | fdf8cfec2b795393d7ee901abaf747575067068b (diff) | |
download | LayoutStudio-ebcc95da4c26369511caa90d89c5ed06e1e4853a.tar.gz LayoutStudio-ebcc95da4c26369511caa90d89c5ed06e1e4853a.zip |
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)
Diffstat (limited to '')
-rw-r--r-- | lyt/materials/chanctrl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lyt/materials/chanctrl.cpp b/lyt/materials/chanctrl.cpp index 5f32e65..1e3f4f8 100644 --- a/lyt/materials/chanctrl.cpp +++ b/lyt/materials/chanctrl.cpp @@ -21,16 +21,16 @@ LYTChanCtrl::LYTChanCtrl() { } -void LYTChanCtrl::dumpToDebug() { +void LYTChanCtrl::dumpToDebug() const { qDebug() << "LYTChanCtrl @" << (void*)this; qDebug() << "ColourMatSrc:" << colourMatSrc << "- AlphaMatSrc:" << alphaMatSrc; } -void LYTChanCtrl::writeToDataStream(QDataStream &out) { +void LYTChanCtrl::writeToDataStream(QDataStream &out) const { out << (quint8)colourMatSrc; out << (quint8)alphaMatSrc; - out.skipRawData(2); // padding + WritePadding(2, out); } |