QGLRenderOrderComparator ClassThe QGLRenderOrderComparator class compares QGLRenderOrder instances. More... #include <QGLRenderOrderComparator> This class was introduced in Qt 4.8. Public Functions
Detailed DescriptionThe QGLRenderOrderComparator class compares QGLRenderOrder instances. The QGLRenderOrderComparator class works with the QGLRenderSequencer and QGLRenderOrder classes to optimize the rendering order of scene nodes. This class is responsible for comparing QGLRenderOrder instances for the QGLRenderSequencer. Custom render orders may be created by sub-classing QGLRenderOrderComparator and reimplementing the following method:
Then set an instance of your class onto QGLPainter: void MyView::initializeGL(QGLPainter *painter) { painter->renderSequencer()->setRenderOrderComparator(new MyRenderOrderComparator); } void MyView::paintGL(QGLPainter *painter) { // draw uses QGLRenderOrder sub-class instances from m_renderOrderFactory complexScene->draw(painter); } See the QGLRenderOrder class documentation for more details. See also QGLRenderOrder. Member Function Documentation
|