45 #include <QtOpenGL/private/qgl_p.h> 46 #include <QtOpenGL/private/qglpaintdevice_p.h> 58 - (void)eaglView:(
EAGLView *)view usesFramebuffer:(GLuint)buffer;
68 #if defined(QT_OPENGL_ES_2) 79 #if defined(QT_OPENGL_ES_2) 86 QSize size()
const {
return mWindow->geometry().size(); }
87 QGLContext*
context()
const {
return QGLContext::fromPlatformGLContext(mWindow->glContext()); }
99 - (void)eaglView:(
EAGLView *)view usesFramebuffer:(GLuint)buffer
125 widget->platformWindow()->glContext()->swapBuffers();
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
void setFramebuffer(GLuint buffer)
virtual QPoint offset(const QWidget *widget) const
Returns the offset of widget in the coordinates of this window surface.
QPaintEngine * paintEngine() const
QPlatformWindow * mWindow
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QGLContext class encapsulates an OpenGL rendering context.
void flush(QWidget *widget, const QRegion ®ion, const QPoint &offset)
Flushes the given region from the specified widget onto the screen.
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...
Q_OPENGL_EXPORT QPaintEngine * qt_qgl_paint_engine()
The QWindowSurface class provides the drawing area for top-level windows.
QPaintDevice * paintDevice()
Implement this function to return the appropriate paint device.
WindowSurfaceFeatures features() const
The QPoint class defines a point in the plane using integer precision.
PaintDeviceHelper * helper
QGLContext * context() const
QPaintDevice * mPaintDevice
The QSize class defines the size of a two-dimensional object using integer point precision.
EAGLPaintDevice(QPlatformWindow *window)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QUIKitWindowSurface(QWidget *window)