summaryrefslogtreecommitdiff
path: root/lyt/materials/tevswaptable.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2010-10-14 20:17:20 +0200
committerTreeki <treeki@gmail.com>2010-10-14 20:17:20 +0200
commitebcc95da4c26369511caa90d89c5ed06e1e4853a (patch)
tree6ed445f0204a6e6615088d135c4b29c4309077a4 /lyt/materials/tevswaptable.cpp
parentfdf8cfec2b795393d7ee901abaf747575067068b (diff)
downloadLayoutStudio-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 'lyt/materials/tevswaptable.cpp')
-rw-r--r--lyt/materials/tevswaptable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lyt/materials/tevswaptable.cpp b/lyt/materials/tevswaptable.cpp
index 05ed497..a13a491 100644
--- a/lyt/materials/tevswaptable.cpp
+++ b/lyt/materials/tevswaptable.cpp
@@ -21,18 +21,18 @@
LYTTevSwapTable::LYTTevSwapTable() {
}
-void LYTTevSwapTable::dumpToDebug() {
+void LYTTevSwapTable::dumpToDebug() const {
qDebug() << "LYTTevSwapTable @" << (void*)this;
for (int i = 0; i < 4; i++) {
- LYTTevSwapMode *m = &mode[i];
+ const LYTTevSwapMode *m = &mode[i];
qDebug() << i << ":" << m->red << "," << m->green << "," << m->blue << "," << m->alpha;
}
}
-void LYTTevSwapTable::writeToDataStream(QDataStream &out) {
+void LYTTevSwapTable::writeToDataStream(QDataStream &out) const {
for (int i = 0; i < 4; i++) {
quint8 val = 0;
val |= mode[i].red;