summaryrefslogtreecommitdiffstats
path: root/src/graphics/common/vertex.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-07-11 20:50:42 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-07-11 20:50:42 +0200
commit2383a42347176aa04fc8a67a83ffa9def4c706de (patch)
treeff46d65bc6f0f86279b4a6f14c323d581acb6666 /src/graphics/common/vertex.h
parent32043605153543bd72eb012ff310367299ad4e8f (diff)
downloadcolobot-2383a42347176aa04fc8a67a83ffa9def4c706de.tar.gz
colobot-2383a42347176aa04fc8a67a83ffa9def4c706de.tar.bz2
colobot-2383a42347176aa04fc8a67a83ffa9def4c706de.zip
Rewritten model loading
- written new implementation of CModelFile (old CModFile) - added stringutils and ioutils in src/common - removed old CModel (model viewer)
Diffstat (limited to 'src/graphics/common/vertex.h')
-rw-r--r--src/graphics/common/vertex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/graphics/common/vertex.h b/src/graphics/common/vertex.h
index 430c84c..c6375b9 100644
--- a/src/graphics/common/vertex.h
+++ b/src/graphics/common/vertex.h
@@ -94,6 +94,14 @@ struct VertexTex2
Math::Point aTexCoord = Math::Point(),
Math::Point aTexCoord2 = Math::Point())
: coord(aCoord), normal(aNormal), texCoord(aTexCoord), texCoord2(aTexCoord2) {}
+
+ void FromVertex(const Gfx::Vertex &v)
+ {
+ coord = v.coord;
+ normal = v.normal;
+ texCoord = v.texCoord;
+ texCoord2 = Math::Point();
+ }
};
}; // namespace Gfx