vertexpositioncolor.h 661 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef VERTEXPOSITIONCOLOR_H
  2. #define VERTEXPOSITIONCOLOR_H
  3. #include <QVector2D>
  4. #include <QVector3D>
  5. #include <QVector4D>
  6. class TVertexPositionColor
  7. {
  8. public:
  9. TVertexPositionColor()
  10. {
  11. }
  12. TVertexPositionColor( const QVector3D & aPosition, const QVector4D & aColor )
  13. : Position(aPosition), Color(aColor)
  14. {
  15. }
  16. public:
  17. QVector3D Position;
  18. QVector4D Color;
  19. };
  20. QDataStream &operator<<(QDataStream & out, const TVertexPositionColor & data);
  21. QDataStream &operator>>(QDataStream & in, TVertexPositionColor & data);
  22. #endif // VERTEXPOSITIONCOLOR_H