summaryrefslogtreecommitdiff
path: root/lyt/materials/material.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2010-10-08 23:46:51 +0200
committerTreeki <treeki@gmail.com>2010-10-08 23:46:51 +0200
commitc2cd2300ab03a41999b8e4e38cf0d29abb786918 (patch)
tree8b03994c84a9e7b2be0a6c39d9c85bec7315575a /lyt/materials/material.cpp
parentb92673def2816cf8010997c87368d7045944ce63 (diff)
downloadLayoutStudio-c2cd2300ab03a41999b8e4e38cf0d29abb786918.tar.gz
LayoutStudio-c2cd2300ab03a41999b8e4e38cf0d29abb786918.zip
material structs finished... finally :( testing time now!
Diffstat (limited to '')
-rw-r--r--lyt/materials/material.cpp21
1 files changed, 19 insertions, 2 deletions
diff --git a/lyt/materials/material.cpp b/lyt/materials/material.cpp
index 1c89ae8..f79fd08 100644
--- a/lyt/materials/material.cpp
+++ b/lyt/materials/material.cpp
@@ -114,7 +114,7 @@ void LYTMaterial::readFromDataStream(QDataStream &in) {
this->readIndirectStage(in);
}
- /*// TevStage
+ // TevStage
tevStages.clear();
for (int i = 0; i < resourceNum.getTevStageNum(); i++) {
@@ -135,7 +135,7 @@ void LYTMaterial::readFromDataStream(QDataStream &in) {
this->readBlendMode(in);
} else {
this->hasBlendMode = false;
- }*/
+ }
}
@@ -183,3 +183,20 @@ void LYTMaterial::readIndirectStage(QDataStream &in) {
this->indTexStages.last().readFromDataStream(in);
this->indTexStages.last().dumpToDebug();
}
+
+void LYTMaterial::readTevStage(QDataStream &in) {
+ this->tevStages.append(LYTTevStage());
+ this->tevStages.last().readFromDataStream(in);
+ this->tevStages.last().dumpToDebug();
+}
+
+void LYTMaterial::readAlphaCompare(QDataStream &in) {
+ this->alphaCompare.readFromDataStream(in);
+ this->alphaCompare.dumpToDebug();
+}
+
+void LYTMaterial::readBlendMode(QDataStream &in) {
+ this->blendMode.readFromDataStream(in);
+ this->blendMode.dumpToDebug();
+}
+