Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void MyGLDrawer::initializeGL (  )  [inline, protected, virtual]

This virtual function is called once before the first call to paintGL() or resizeGL(), and then once whenever the widget has been assigned a new QGLContext. Reimplement it in a subclass.

This function should set up any required OpenGL context rendering flags, defining display lists, etc.

There is no need to call makeCurrent() because this has already been done when this function is called.

Reimplemented from QGLWidget.

Definition at line 99 of file src_opengl_qgl.cpp.

        // Set up the rendering context, define display lists etc.:
        glClearColor(0.0, 0.0, 0.0, 0.0);

Generated by  Doxygen 1.6.0   Back to index