![]() |
Qt 6.x
The Qt SDK
|
The QPlatformSurface class provides an abstraction for a surface. More...
#include <qplatformsurface.h>
Public Member Functions | |
virtual | ~QPlatformSurface () |
virtual QSurfaceFormat | format () const =0 |
QSurface * | surface () const |
virtual QPlatformScreen * | screen () const =0 |
Static Public Member Functions | |
static bool | isRasterSurface (QSurface *surface) |
Friends | |
class | QPlatformWindow |
class | QPlatformOffscreenSurface |
The QPlatformSurface class provides an abstraction for a surface.
\preliminary
Definition at line 29 of file qplatformsurface.h.
|
virtual |
Definition at line 21 of file qplatformsurface.cpp.
|
pure virtual |
Implemented in QDirectFbWindowEGL, QPlatformOffscreenSurface, QPlatformWindow, QEGLPbuffer, QAndroidPlatformOffscreenSurface, QAndroidPlatformOpenGLWindow, QAndroidPlatformVulkanWindow, QCocoaOffscreenSurface, QCocoaWindow, QEglFSOffscreenWindow, QEglFSWindow, QIOSOffscreenSurface, QIOSWindow, QQnxEglWindow, QWasmWindow, QWindowsWindow, QGLXPbuffer, QXcbWindow, QtWaylandClient::QWaylandShmWindow, QtWaylandClient::QWaylandBrcmEglWindow, and QtWaylandClient::QWaylandEglWindow.
Referenced by QEGLPlatformContext::makeCurrent(), QWindowsGLContext::makeCurrent(), and QGLXContext::makeCurrent().
|
static |
Definition at line 35 of file qplatformsurface.cpp.
References QSurface::RasterGLSurface, QSurface::RasterSurface, surface(), and QSurface::surfaceType().
Referenced by QRasterBackingStore::scroll().
|
pure virtual |
Implemented in QPlatformOffscreenSurface, QPlatformWindow, QEglFSWindow, and QQnxWindow.
QSurface * QPlatformSurface::surface | ( | ) | const |
Definition at line 26 of file qplatformsurface.cpp.
Referenced by QIOSContext::defaultFramebufferObject(), QAndroidPlatformOpenGLContext::eglSurfaceForPlatformSurface(), QEglFSContext::eglSurfaceForPlatformSurface(), QXcbEglContext::eglSurfaceForPlatformSurface(), QCocoaWindow::isOpaque(), isRasterSurface(), QEGLPlatformContext::makeCurrent(), QCocoaGLContext::makeCurrent(), QIOSContext::makeCurrent(), QWindowsGLContext::makeCurrent(), QGLXContext::makeCurrent(), operator<<(), QEglFSKmsGbmIntegration::presentBuffer(), QEglFSKmsVsp2Integration::presentBuffer(), screenForPlatformSurface(), QAndroidPlatformOpenGLWindow::surfaceChanged(), QAndroidPlatformVulkanWindow::surfaceChanged(), QAndroidPlatformOpenGLContext::swapBuffers(), QCocoaGLContext::swapBuffers(), QEglFSContext::swapBuffers(), QIOSContext::swapBuffers(), QXcbEglContext::swapBuffers(), QGLXContext::swapBuffers(), and QEglFSKmsIntegration::waitForVSync().
|
friend |
Definition at line 48 of file qplatformsurface.h.
|
friend |
Definition at line 47 of file qplatformsurface.h.