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(); }