C++ (Qt)Q_ASSERT(sizeof(QVector3D) == sizeof(float) * 3);
C++ (Qt)struct Vertex{ float x; float y; float z;} Q_STATIC_ASSERT( sizeof( Vertex ) == 3 * sizeof( floet ) ); QVector< Vertex > vertices;QOpenGLBuffer buffer; ... buffer.write( offset, vertices.constData(), 3 * vertices.count() );
C++ (Qt)typedef QVector3D Vector3D;
C++ (Qt)typedef MyValidVector3D Vector3D;