EVT_2TCOORDS,\r
\r
//! Vertex with a tangent and binormal vector, video::S3DVertexTangents.\r
- /** Usually used for tangent space normal mapping. \r
+ /** Usually used for tangent space normal mapping.\r
Usually tangent and binormal get send to shaders as texture coordinate sets 1 and 2.\r
*/\r
EVT_TANGENTS\r
//! Equality operator\r
bool operator==(const S3DVertex2TCoords& other) const\r
{\r
- return ((static_cast<S3DVertex>(*this)==other) &&\r
+ return ((static_cast<S3DVertex>(*this)==static_cast<const S3DVertex&>(other)) &&\r
(TCoords2 == other.TCoords2));\r
}\r
\r
//! Inequality operator\r
bool operator!=(const S3DVertex2TCoords& other) const\r
{\r
- return ((static_cast<S3DVertex>(*this)!=other) ||\r
+ return ((static_cast<S3DVertex>(*this)!=static_cast<const S3DVertex&>(other)) ||\r
(TCoords2 != other.TCoords2));\r
}\r
\r
bool operator<(const S3DVertex2TCoords& other) const\r
{\r
return ((static_cast<S3DVertex>(*this) < other) ||\r
- ((static_cast<S3DVertex>(*this) == other) && (TCoords2 < other.TCoords2)));\r
+ ((static_cast<S3DVertex>(*this) == static_cast<const S3DVertex&>(other)) && (TCoords2 < other.TCoords2)));\r
}\r
\r
static E_VERTEX_TYPE getType()\r
\r
\r
//! Vertex with a tangent and binormal vector.\r
-/** Usually used for tangent space normal mapping. \r
+/** Usually used for tangent space normal mapping.\r
Usually tangent and binormal get send to shaders as texture coordinate sets 1 and 2.\r
*/\r
struct S3DVertexTangents : public S3DVertex\r
\r
bool operator==(const S3DVertexTangents& other) const\r
{\r
- return ((static_cast<S3DVertex>(*this)==other) &&\r
+ return ((static_cast<S3DVertex>(*this)==static_cast<const S3DVertex&>(other)) &&\r
(Tangent == other.Tangent) &&\r
(Binormal == other.Binormal));\r
}\r
\r
bool operator!=(const S3DVertexTangents& other) const\r
{\r
- return ((static_cast<S3DVertex>(*this)!=other) ||\r
+ return ((static_cast<S3DVertex>(*this)!=static_cast<const S3DVertex&>(other)) ||\r
(Tangent != other.Tangent) ||\r
(Binormal != other.Binormal));\r
}\r
bool operator<(const S3DVertexTangents& other) const\r
{\r
return ((static_cast<S3DVertex>(*this) < other) ||\r
- ((static_cast<S3DVertex>(*this) == other) && (Tangent < other.Tangent)) ||\r
- ((static_cast<S3DVertex>(*this) == other) && (Tangent == other.Tangent) && (Binormal < other.Binormal)));\r
+ ((static_cast<S3DVertex>(*this) == static_cast<const S3DVertex&>(other)) && (Tangent < other.Tangent)) ||\r
+ ((static_cast<S3DVertex>(*this) == static_cast<const S3DVertex&>(other)) && (Tangent == other.Tangent) && (Binormal < other.Binormal)));\r
}\r
\r
static E_VERTEX_TYPE getType()\r