diff options
author | Zaba999 <zaba.marcin@gmail.com> | 2012-09-26 22:59:37 +0200 |
---|---|---|
committer | Zaba999 <zaba.marcin@gmail.com> | 2012-09-26 22:59:37 +0200 |
commit | 400869ff86e88fdb12c892c7885c07ce2ae99e5e (patch) | |
tree | 4974075a6d57d0054284ca126f8a423ae48060e0 /src/graphics/core/vertex.h | |
parent | f6638a173e21fbee3cc961d3dea82cc89382b873 (diff) | |
parent | 45fd8aad33029746424031e12777f2824bda245e (diff) | |
download | colobot-400869ff86e88fdb12c892c7885c07ce2ae99e5e.tar.gz colobot-400869ff86e88fdb12c892c7885c07ce2ae99e5e.tar.bz2 colobot-400869ff86e88fdb12c892c7885c07ce2ae99e5e.zip |
Merge branch 'master' of git://github.com/colobot/colobot
Diffstat (limited to 'src/graphics/core/vertex.h')
-rw-r--r-- | src/graphics/core/vertex.h | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/graphics/core/vertex.h b/src/graphics/core/vertex.h index 9ab4dbb..e2c35c3 100644 --- a/src/graphics/core/vertex.h +++ b/src/graphics/core/vertex.h @@ -69,36 +69,28 @@ struct Vertex /** * \struct VertexCol - * \brief Vertex with color information - * - * This structure was created as analog to DirectX's D3DLVERTEX. + * \brief Colored vertex * * It contains: * - vertex coordinates (x,y,z) as Math::Vector, - * - RGBA color as Color, - * - RGBA specular color as Color, - * - texture coordinates (u,v) as Math::Point. + * - RGBA color as Color */ struct VertexCol { Math::Vector coord; Color color; - Color specular; - Math::Point texCoord; explicit VertexCol(Math::Vector aCoord = Math::Vector(), Color aColor = Color(), - Color aSpecular = Color(), Math::Point aTexCoord = Math::Point()) - : coord(aCoord), color(aColor), specular(aSpecular), texCoord(aTexCoord) {} + : coord(aCoord), color(aColor) {} - //! Returns a string "(c: [...], col: [...], sp: [...], tc: [...])" + //! Returns a string "(c: [...], col: [...])" inline std::string ToString() const { std::stringstream s; s.precision(3); - s << "(c: " << coord.ToString() << ", col: " << color.ToString() << ", sp: " - << specular.ToString() << ", tc: " << texCoord.ToString() << ")"; + s << "(c: " << coord.ToString() << ", col: " << color.ToString() << ")"; return s.str(); } }; |