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 ().