int n = 10000; if (v.size() < n) { v.append((float)(qrand() % 100) / 100); v.append((float)(qrand() % 100) / 100); v.append((float)(qrand() % 100) / 100); } qDebug() << v.size(); glVertexAttribPointer(m_posAttr, 3, GL_FLOAT, GL_FALSE, 0, v.data()); glVertexAttribPointer(m_colAttr, 3, GL_FLOAT, GL_FALSE, 0, colors); glEnableVertexAttribArray(0); glEnableVertexAttribArray(1); glDrawArrays(GL_TRIANGLE_STRIP, 0, v.size() / 3);
d_ptr->f.DrawArrays(mode, first, count);
inline void QOpenGLFunctions::glDrawArrays(GLenum mode, GLint first, GLsizei count){#ifdef QT_OPENGL_ES_2 ::glDrawArrays(mode, first, count);#else Q_ASSERT(QOpenGLFunctions::isInitialized(d_ptr)); d_ptr->f.DrawArrays(mode, first, count);#endif Q_OPENGL_FUNCTIONS_DEBUG}