Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QGLWindowSurface Class Reference
[QtOpenGL module]

The QGLWindowSurface class provides the drawing area for top-level windows in Qtopia Core on EGL/OpenGLES. It also provides the drawing area for QGLWidgets whether they are top-level windows or child widget of another QWidget. More...

 #include <QGLWindowSurface>

This class is under development and is subject to change.

This class was introduced in Qt 4.3.

Public Functions


Detailed Description

The QGLWindowSurface class provides the drawing area for top-level windows in Qtopia Core on EGL/OpenGLES. It also provides the drawing area for QGLWidgets whether they are top-level windows or child widget of another QWidget.

Note that this class is only available in Qtopia Core and only available if Qt is configured with OpenGL support.


Member Function Documentation

QGLWindowSurface::QGLWindowSurface ( QWidget * window )

Constructs an empty QGLWindowSurface for the given top-level window. The window surface is later initialized from chooseContext() and resources for it is typically allocated in setGeometry().

This function was introduced in Qt 4.3.

QGLWindowSurface::QGLWindowSurface ()

Constructs an empty QGLWindowSurface.

This function was introduced in Qt 4.3.

QGLWindowSurface::~QGLWindowSurface ()

QGLContext * QGLWindowSurface::context () const

Returns the QGLContext of the window surface.

This function was introduced in Qt 4.3.

See also setContext().

void QGLWindowSurface::setContext ( QGLContext * context )

Sets the QGLContext for this window surface.

This function was introduced in Qt 4.3.

See also context().


Copyright © 2007 Trolltech Trademarks
Qt 4.3.0rc1