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

void MyGLDrawer::resizeGL ( int  width,
int  height 
) [inline, protected, virtual]

This virtual function is called whenever the widget has been resized. The new size is passed in width and height. Reimplement it in a subclass.

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

Reimplemented from QGLWidget.

Definition at line 108 of file src_opengl_qgl.cpp.

        // setup viewport, projection etc.:
        glViewport(0, 0, (GLint)w, (GLint)h);

Generated by  Doxygen 1.6.0   Back to index