diff options
author | Zaba999 <zaba.marcin@gmail.com> | 2012-09-20 23:04:37 +0200 |
---|---|---|
committer | Zaba999 <zaba.marcin@gmail.com> | 2012-09-20 23:04:37 +0200 |
commit | 34a11021daca9d6b51e8cc29c1562a75815df7b3 (patch) | |
tree | 7d1427b27337d32224cf66cc114adf4f3665bbee /src/graphics/core/vertex.h | |
parent | 191fdc614ed8022c145d3530f9d412e715ae37db (diff) | |
parent | e25823f98437461826b52521bcf9d70eb11a00b3 (diff) | |
download | colobot-34a11021daca9d6b51e8cc29c1562a75815df7b3.tar.gz colobot-34a11021daca9d6b51e8cc29c1562a75815df7b3.tar.bz2 colobot-34a11021daca9d6b51e8cc29c1562a75815df7b3.zip |
changed paths for models and levels. Now it's possible to load level. Merged with latest trunk
Diffstat (limited to 'src/graphics/core/vertex.h')
-rw-r--r-- | src/graphics/core/vertex.h | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/src/graphics/core/vertex.h b/src/graphics/core/vertex.h index a99d618..9ab4dbb 100644 --- a/src/graphics/core/vertex.h +++ b/src/graphics/core/vertex.h @@ -23,11 +23,14 @@ #include "graphics/core/color.h" + #include "math/vector.h" #include "math/point.h" #include <sstream> + +// Graphics module namespace namespace Gfx { /** @@ -72,20 +75,20 @@ struct Vertex * * It contains: * - vertex coordinates (x,y,z) as Math::Vector, - * - RGBA color as Gfx::Color, - * - RGBA specular color as Gfx::Color, + * - RGBA color as Color, + * - RGBA specular color as Color, * - texture coordinates (u,v) as Math::Point. */ struct VertexCol { Math::Vector coord; - Gfx::Color color; - Gfx::Color specular; + Color color; + Color specular; Math::Point texCoord; explicit VertexCol(Math::Vector aCoord = Math::Vector(), - Gfx::Color aColor = Gfx::Color(), - Gfx::Color aSpecular = Gfx::Color(), + Color aColor = Color(), + Color aSpecular = Color(), Math::Point aTexCoord = Math::Point()) : coord(aCoord), color(aColor), specular(aSpecular), texCoord(aTexCoord) {} @@ -105,7 +108,7 @@ struct VertexCol * \struct VertexTex2 * \brief Vertex with secondary texture coordinates * - * In addition to fields from Gfx::Vector, it contains + * In addition to fields from Vector, it contains * secondary texture coordinates (u2, v2) as Math::Point */ struct VertexTex2 @@ -121,8 +124,8 @@ struct VertexTex2 Math::Point aTexCoord2 = Math::Point()) : coord(aCoord), normal(aNormal), texCoord(aTexCoord), texCoord2(aTexCoord2) {} - //! Sets the fields from Gfx::Vertex with texCoord2 = (0,0) - void FromVertex(const Gfx::Vertex &v) + //! Sets the fields from Vertex with texCoord2 = (0,0) + void FromVertex(const Vertex &v) { coord = v.coord; normal = v.normal; @@ -141,4 +144,5 @@ struct VertexTex2 } }; -}; // namespace Gfx + +} // namespace Gfx |