QWSGLWindowSurface Class

The QWSGLWindowSurface class provides the drawing area for top-level windows with Qt for Embedded Linux on EGL/ OpenGL ES. It also provides the drawing area for QGLWidget s whether they are top-level windows or children of another QWidget . 更多...

頭: #include <QWSGLWindowSurface>
Since: Qt 4.3

該類在開發且可能改變。

公共函數

QWSGLWindowSurface (QWidget * window )
QWSGLWindowSurface ()
~QWSGLWindowSurface ()
QGLContext * context () const
void setContext (QGLContext * context )

詳細描述

The QWSGLWindowSurface class provides the drawing area for top-level windows with Qt for Embedded Linux on EGL/ OpenGL ES. It also provides the drawing area for QGLWidget s whether they are top-level windows or children of another QWidget .

Note that this class is only available in Qt for Embedded Linux and only available if Qt is configured with OpenGL 支持。

成員函數文檔編製

QWSGLWindowSurface:: QWSGLWindowSurface ( QWidget * window )

構造空的 QWSGLWindowSurface for the given top-level window . The window surface is later initialized from chooseContext() and resources for it is typically allocated in setGeometry().

QWSGLWindowSurface:: QWSGLWindowSurface ()

構造空的 QWSGLWindowSurface .

QWSGLWindowSurface:: ~QWSGLWindowSurface ()

銷毀 QWSGLWindowSurface 對象並釋放任何分配資源。

QGLContext * QWSGLWindowSurface:: context () const

返迴 QGLContext of the window surface.

另請參閱 setContext ().

void QWSGLWindowSurface:: setContext ( QGLContext * context )

設置 QGLContext for this window surface to context .

另請參閱 context ().