diff options
author | Treeki <treeki@gmail.com> | 2010-10-07 23:48:57 +0200 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2010-10-07 23:48:57 +0200 |
commit | 532859713aaf0fdf482ee7d68676f6927a800eeb (patch) | |
tree | 304c7d60b76c0a91296087927d52360a627478c0 /lyt/materials/material.cpp | |
parent | 5f6dad55d75cbe146ff7fefc899a02ccd39078ba (diff) | |
download | LayoutStudio-532859713aaf0fdf482ee7d68676f6927a800eeb.tar.gz LayoutStudio-532859713aaf0fdf482ee7d68676f6927a800eeb.zip |
implemented some more material stuff; added readme
Diffstat (limited to '')
-rw-r--r-- | lyt/materials/material.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lyt/materials/material.cpp b/lyt/materials/material.cpp index a23534c..d09614a 100644 --- a/lyt/materials/material.cpp +++ b/lyt/materials/material.cpp @@ -44,7 +44,7 @@ void LYTMaterial::readFromDataStream(QDataStream &in) { } // TexSRT - /*texSRTs.clear(); + texSRTs.clear(); for (int i = 0; i < resourceNum.getTexSRTNum(); i++) { this->readTexSRT(in); @@ -58,7 +58,7 @@ void LYTMaterial::readFromDataStream(QDataStream &in) { } // ChanCtrl - if (resourceNum.hasChanCtrl()) { + /*if (resourceNum.hasChanCtrl()) { this->hasChanCtrl = true; this->readChanCtrl(in); } else { @@ -124,4 +124,17 @@ void LYTMaterial::readFromDataStream(QDataStream &in) { void LYTMaterial::readTexMap(QDataStream &in) { this->texMaps.append(LYTTexMap()); this->texMaps.last().readFromDataStream(in, m_layout); + this->texMaps.last().dumpToDebug(); +} + +void LYTMaterial::readTexSRT(QDataStream &in) { + this->texSRTs.append(LYTTexSRT()); + this->texSRTs.last().readFromDataStream(in); + this->texSRTs.last().dumpToDebug(); +} + +void LYTMaterial::readTexCoordGen(QDataStream &in) { + this->texCoordGens.append(LYTTexCoordGen()); + this->texCoordGens.last().readFromDataStream(in); + this->texCoordGens.last().dumpToDebug(); } |