Obsolete Members for QGLContext

以下成員源於類 QGLContext 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) QGLContext (const QGLFormat & format , QPaintDevice * device )

成員函數文檔編製

QGLContext:: QGLContext (const QGLFormat & format , QPaintDevice * device )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs an OpenGL context for the given paint device , which can be a widget or a pixmap. The format specifies several display options for the context.

If the underlying OpenGL/Window system cannot satisfy all the features requested in format , the nearest subset of features will be used. After creation, the format () method will return the actual format obtained.

Note that after a QGLContext object has been constructed, create () must be called explicitly to create the actual OpenGL context. The context will be 無效 if it was not possible to obtain a GL context at all.