#include <qgl.h>

Public Slots |
|
| virtual void | updateGL () |
| virtual void | updateOverlayGL () |
Public Member Functions |
|
| QGLWidget (QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0) | |
| QGLWidget (QGLContext *context, QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0) | |
| QGLWidget (const QGLFormat &format, QWidget *parent=0, const QGLWidget *shareWidget=0, Qt::WindowFlags f=0) | |
| ~QGLWidget () | |
| void | qglColor (const QColor &c) const |
| void | qglClearColor (const QColor &c) const |
| bool | isValid () const |
| bool | isSharing () const |
| void | makeCurrent () |
| void | doneCurrent () |
| bool | doubleBuffer () const |
| void | swapBuffers () |
| QGLFormat | format () const |
| void | setFormat (const QGLFormat &format) |
| const QGLContext * | context () const |
| void | setContext (QGLContext *context, const QGLContext *shareContext=0, bool deleteOldContext=true) |
| QPixmap | renderPixmap (int w=0, int h=0, bool useContext=false) |
| QImage | grabFrameBuffer (bool withAlpha=false) |
| void | makeOverlayCurrent () |
| const QGLContext * | overlayContext () const |
| void | setMouseTracking (bool enable) |
| const QGLColormap & | colormap () const |
| void | setColormap (const QGLColormap &map) |
| void | renderText (int x, int y, const QString &str, const QFont &fnt=QFont(), int listBase=2000) |
| void | renderText (double x, double y, double z, const QString &str, const QFont &fnt=QFont(), int listBase=2000) |
| QPaintEngine * | paintEngine () const |
| GLuint | bindTexture (const QImage &image, GLenum target, GLint format, QGLContext::BindOptions options) |
| GLuint | bindTexture (const QPixmap &pixmap, GLenum target, GLint format, QGLContext::BindOptions options) |
| GLuint | bindTexture (const QImage &image, GLenum target=GL_TEXTURE_2D, GLint format=GL_RGBA) |
| GLuint | bindTexture (const QPixmap &pixmap, GLenum target=GL_TEXTURE_2D, GLint format=GL_RGBA) |
| GLuint | bindTexture (const QString &fileName) |
| void | deleteTexture (GLuint tx_id) |
| void | drawTexture (const QRectF &target, GLuint textureId, GLenum textureTarget=GL_TEXTURE_2D) |
| void | drawTexture (const QPointF &point, GLuint textureId, GLenum textureTarget=GL_TEXTURE_2D) |
Static Public Member Functions |
|
| static QImage | convertToGLFormat (const QImage &img) |
Protected Member Functions |
|
| bool | event (QEvent *) |
| virtual void | initializeGL () |
| virtual void | resizeGL (int w, int h) |
| virtual void | paintGL () |
| virtual void | initializeOverlayGL () |
| virtual void | resizeOverlayGL (int w, int h) |
| virtual void | paintOverlayGL () |
| void | setAutoBufferSwap (bool on) |
| bool | autoBufferSwap () const |
| void | paintEvent (QPaintEvent *) |
| void | resizeEvent (QResizeEvent *) |
| virtual void | glInit () |
| virtual void | glDraw () |
| int | fontDisplayListBase (const QFont &fnt, int listBase=2000) |
Friends |
|
| class | QGLDrawable |
| class | QGLPixelBuffer |
| class | QGLPixelBufferPrivate |
| class | QGLContext |
| class | QGLContextPrivate |
| class | QGLOverlayWidget |
| class | QOpenGLPaintEngine |
| class | QGLPaintDevice |
| class | QGLWidgetGLPaintDevice |
| QGLWidget | ( | QGLContext * | context, |
| QWidget * | parent = 0, |
||
| const QGLWidget * | shareWidget = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) | [explicit] |
| ~QGLWidget | ( | ) |
| void qglColor | ( | const QColor & | c | ) | const |
| void qglClearColor | ( | const QColor & | c | ) | const |
| bool isValid | ( | ) | const |
| bool isSharing | ( | ) | const |
| void makeCurrent | ( | ) |
| void doneCurrent | ( | ) |
| bool doubleBuffer | ( | ) | const |
| void swapBuffers | ( | ) |
| QGLFormat format | ( | ) | const |
| void setFormat | ( | const QGLFormat & | format | ) |
| const QGLContext* context | ( | ) | const |
| void setContext | ( | QGLContext * | context, |
| const QGLContext * | shareContext = 0, |
||
| bool | deleteOldContext =
true |
||
| ) |
| QPixmap renderPixmap | ( | int | w = 0, |
| int | h = 0, |
||
| bool | useContext =
false |
||
| ) |
| QImage grabFrameBuffer | ( | bool | withAlpha = false |
) |
| void makeOverlayCurrent | ( | ) |
| const QGLContext* overlayContext | ( | ) | const |
| void setMouseTracking | ( | bool | enable | ) |
Reimplemented from QWidget.
| const QGLColormap& colormap | ( | ) | const |
| void setColormap | ( | const QGLColormap & | map | ) |
| QPaintEngine* paintEngine | ( | ) | const [virtual] |
Reimplemented from QWidget.
| GLuint bindTexture | ( | const QImage & | image, |
| GLenum | target, | ||
| GLint | format, | ||
| QGLContext::BindOptions | options | ||
| ) |
| GLuint bindTexture | ( | const QPixmap & | pixmap, |
| GLenum | target, | ||
| GLint | format, | ||
| QGLContext::BindOptions | options | ||
| ) |
| GLuint bindTexture | ( | const QImage & | image, |
| GLenum | target =
GL_TEXTURE_2D, |
||
| GLint | format =
GL_RGBA |
||
| ) |
| GLuint bindTexture | ( | const QPixmap & | pixmap, |
| GLenum | target =
GL_TEXTURE_2D, |
||
| GLint | format =
GL_RGBA |
||
| ) |
| GLuint bindTexture | ( | const QString & | fileName | ) |
| void deleteTexture | ( | GLuint | tx_id | ) |
| void drawTexture | ( | const QRectF & | target, |
| GLuint | textureId, | ||
| GLenum | textureTarget =
GL_TEXTURE_2D |
||
| ) |
| void drawTexture | ( | const QPointF & | point, |
| GLuint | textureId, | ||
| GLenum | textureTarget =
GL_TEXTURE_2D |
||
| ) |
| virtual void updateGL | ( | ) | [virtual, slot] |
| virtual void updateOverlayGL | ( | ) | [virtual, slot] |
| virtual void initializeGL | ( | ) | [protected, virtual] |
| virtual void resizeGL | ( | int | w, |
| int | h | ||
| ) | [protected, virtual] |
| virtual void paintGL | ( | ) | [protected, virtual] |
| virtual void initializeOverlayGL | ( | ) | [protected, virtual] |
| virtual void resizeOverlayGL | ( | int | w, |
| int | h | ||
| ) | [protected, virtual] |
| virtual void paintOverlayGL | ( | ) | [protected, virtual] |
| void setAutoBufferSwap | ( | bool | on | ) | [protected] |
| bool autoBufferSwap | ( | ) | const [protected] |
| void paintEvent | ( | QPaintEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| void resizeEvent | ( | QResizeEvent * | ) | [protected, virtual] |
Reimplemented from QWidget.
| virtual void glInit | ( | ) | [protected, virtual] |
| virtual void glDraw | ( | ) | [protected, virtual] |
| int fontDisplayListBase | ( | const QFont & | fnt, |
| int | listBase =
2000 |
||
| ) | [protected] |
friend class QGLDrawable
[friend] |
friend class QGLPixelBuffer
[friend] |
friend class QGLPixelBufferPrivate
[friend] |
friend class QGLContext
[friend] |
friend class QGLContextPrivate
[friend] |
friend class QGLOverlayWidget
[friend] |
friend class QOpenGLPaintEngine
[friend] |
friend class QGLPaintDevice
[friend] |
friend class QGLWidgetGLPaintDevice
[friend] |