20 #ifndef OMNI_GEOMETRY_VERTEX2D_H_
21 #define OMNI_GEOMETRY_VERTEX2D_H_
35 const QVector2D& _pos,
36 const QVector2D& _texCoord);
39 void setPos(QVector2D
const& _pos);
45 QVector2D
const&
pos()
const;
63 return sizeof(QVector2D);
QVector2D texCoord_
Definition: Vertex2D.h:67
QVector2D & pos()
Return reference to position.
Definition: Vertex2D.cpp:37
QVector2D & texCoord()
Return reference to texture coordinates.
Definition: Vertex2D.cpp:49
void setPos(QVector2D const &_pos)
Set new position.
Definition: Vertex2D.cpp:33
A Warp vertex is a geometry entity with a position, normal and texture.
Definition: Vertex2D.h:29
static constexpr size_t posOffset()
Definition: Vertex2D.h:61
void setTexCoord(QVector2D const &_texCoord)
Set new texture coordinates.
Definition: Vertex2D.cpp:45
QVector2D pos_
Definition: Vertex2D.h:68
static constexpr size_t texCoordOffset()
Definition: Vertex2D.h:56
Vertex2D()
Default constructor.
Definition: Vertex2D.cpp:24