以下成員源於類 QGLWidget 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
|
QGLWidget (QWidget * parent , const char * name , const QGLWidget * shareWidget = 0, Qt::WindowFlags f = 0) |
(obsolete)
|
QGLWidget (const QGLFormat & format , QWidget * parent , const char * name , const QGLWidget * shareWidget = 0, Qt::WindowFlags f = 0) |
(obsolete)
|
QGLWidget (QGLContext * context , QWidget * parent , const char * name , const QGLWidget * shareWidget = 0, Qt::WindowFlags f = 0) |
(obsolete)
void
|
setFormat (const QGLFormat & format ) |
(obsolete)
int
|
fontDisplayListBase (const QFont & font , int listBase = 2000) |
這是重載函數。
這是重載函數。
這是重載函數。
[protected]
int
QGLWidget::
fontDisplayListBase
(const
QFont
&
font
,
int
listBase
= 2000)
Returns the value of the first display list that is generated for the characters in the given font . listBase indicates the base value used when generating the display lists for the font. The default value is 2000.
注意: This function is not supported on OpenGL /ES systems.
Sets a new format for this widget.
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 rendering context format obtained.
The widget will be assigned a new QGLContext ,和 initializeGL () function will be executed for this new context before the first resizeGL () 或 paintGL ().
This method will try to keep display list and texture object sharing in effect with other QGLWidget objects, but changing the format might make sharing impossible. Use isSharing () to see if sharing is still in effect.