Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Qt 如何处理对 QGLWidget 中的 glVertex3f 等各种 OpenGL 函数的函数调用?
这些调用是 QGLWidget 对象的一部分,还是严格来说是全局命名空间 OpenGL 函数?
从单独的类中绘制 QGLWidget 的最佳实践是什么?
它们是全局命名空间 OpenGL 函数。
在paintGL() 函数中调用其他类的绘图函数。
void MyGLWidget::paintGL() { other->draw(); }