49 #include <QtGui/QWidget> 50 #include <QtOpenGL/private/qgl_p.h> 59 : mPlatformGlContext(platformGlContext)
86 #if defined(QBBGLWINDOWSURFACE_DEBUG) 87 qDebug() <<
"QBBGLWindowSurface::QBBGLWindowSurface - w=" <<
window;
99 #if defined(QBBGLWINDOWSURFACE_DEBUG) 100 qDebug() <<
"QBBGLWindowSurface::~QBBGLWindowSurface - w=" <<
window();
113 #if defined(QBBGLWINDOWSURFACE_DEBUG) 114 qDebug() <<
"QBBGLWindowSurface::flush - w=" <<
window();
123 #if defined(QBBGLWINDOWSURFACE_DEBUG) 124 qDebug() <<
"QBBGLWindowSurface::resize - w=" <<
window() <<
", s=" << size;
128 QWindowSurface::resize(size);
138 #if defined(QBBGLWINDOWSURFACE_DEBUG) 139 qDebug() <<
"QBBGLWindowSurface::beginPaint - w=" <<
window();
152 #if defined(QBBGLWINDOWSURFACE_DEBUG) 153 qDebug() <<
"QBBGLWindowSurface::endPaint - w=" <<
window();
virtual void swapBuffers()
Reimplement in subclass to native swap buffers calls.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
virtual void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
QSize surfaceSize() const
QBBGLContext * mPlatformGlContext
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
virtual void endPaint(const QRegion ®ion)
This function is called after painting onto the surface has ended, with the region in which the paint...
Q_CORE_EXPORT void qDebug(const char *,...)
virtual void resize(const QSize &size)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QBBGLWindowSurface(QWidget *window)
virtual QSize size() const
void resizeSurface(const QSize &size)
The QRegion class specifies a clip region for a painter.
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
QBBGLPaintDevice * mPaintDevice
Q_OPENGL_EXPORT QPaintEngine * qt_qgl_paint_engine()
The QWindowSurface class provides the drawing area for top-level windows.
virtual ~QBBGLWindowSurface()
virtual QWindowSurface::WindowSurfaceFeatures features() const
QBBGLPaintDevice(QBBGLContext *platformGlContext)
virtual ~QBBGLPaintDevice()
virtual QPaintEngine * paintEngine() const
The QPoint class defines a point in the plane using integer precision.
virtual void beginPaint(const QRegion ®ion)
This function is called before painting onto the surface begins, with the region in which the paintin...
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QWidget * window() const
Returns a pointer to the top-level window associated with this surface.
QBBGLContext * mPlatformGlContext