27 void swapBuffers(QPlatformSurface *surface)
override;
29 bool makeCurrent(QPlatformSurface *surface)
override;
43 EAGLContext *m_eaglContext;
44 QSurfaceFormat m_format;
46 struct FramebufferObject {
48 GLuint colorRenderbuffer;
49 GLuint depthRenderbuffer;
50 GLint renderbufferWidth;
51 GLint renderbufferHeight;
55 static bool verifyGraphicsHardwareAvailability();
56 static void deleteBuffers(
const FramebufferObject &framebufferObject);
58 FramebufferObject &backingFramebufferObjectFor(QPlatformSurface *)
const;
59 mutable QHash<QPlatformSurface *, FramebufferObject> m_framebufferObjects;
61 bool needsRenderbufferResize(QPlatformSurface *)
const;
QSurfaceFormat format() const override
void doneCurrent() override
bool isSharing() const override
void swapBuffers(QPlatformSurface *surface) override
Reimplement in subclass to native swap buffers calls.
GLuint defaultFramebufferObject(QPlatformSurface *) const override
Reimplement in subclass if your platform uses framebuffer objects for surfaces.
bool isValid() const override
QFunctionPointer getProcAddress(const char *procName) override
Reimplement in subclass to allow dynamic querying of OpenGL symbols.
bool makeCurrent(QPlatformSurface *surface) override
#define Q_ASSERT_IS_GL_SURFACE(surface)
#define QT_IOS_GL_STATUS_CASE(val)
static QString fboStatusString(GLenum status)