![]() |
Qt 6.x
The Qt SDK
|
A pbuffer-based implementation of QPlatformOffscreenSurface for EGL. More...
#include <qeglpbuffer_p.h>
Public Member Functions | |
QEGLPbuffer (EGLDisplay display, const QSurfaceFormat &format, QOffscreenSurface *offscreenSurface, QEGLPlatformContext::Flags flags={ }) | |
~QEGLPbuffer () | |
QSurfaceFormat | format () const override |
Returns the actual surface format of the offscreen surface. | |
bool | isValid () const override |
Returns true if the platform offscreen surface has been allocated. | |
EGLSurface | pbuffer () const |
![]() | |
QPlatformOffscreenSurface (QOffscreenSurface *offscreenSurface) | |
~QPlatformOffscreenSurface () override | |
QOffscreenSurface * | offscreenSurface () const |
QPlatformScreen * | screen () const override |
Returns the platform screen handle corresponding to this QPlatformOffscreenSurface. | |
virtual QSurfaceFormat | format () const override |
Returns the actual surface format of the offscreen surface. | |
virtual bool | isValid () const |
Returns true if the platform offscreen surface has been allocated. | |
![]() | |
virtual | ~QPlatformSurface () |
virtual QSurfaceFormat | format () const =0 |
QSurface * | surface () const |
virtual QPlatformScreen * | screen () const =0 |
Additional Inherited Members | |
![]() | |
static bool | isRasterSurface (QSurface *surface) |
![]() | |
QScopedPointer< QPlatformOffscreenSurfacePrivate > | d_ptr |
A pbuffer-based implementation of QPlatformOffscreenSurface for EGL.
To use this implementation in the platform plugin simply reimplement QPlatformIntegration::createPlatformOffscreenSurface() and return a new instance of this class.
Definition at line 23 of file qeglpbuffer_p.h.
QEGLPbuffer::QEGLPbuffer | ( | EGLDisplay | display, |
const QSurfaceFormat & | format, | ||
QOffscreenSurface * | offscreenSurface, | ||
QEGLPlatformContext::Flags | flags = { } |
||
) |
Definition at line 22 of file qeglpbuffer.cpp.
References QSize::height(), QEGLPlatformContext::NoSurfaceless, QPlatformOffscreenSurface::offscreenSurface(), q_configFromGLFormat(), q_glFormatFromConfig(), q_hasEglExtension(), QOffscreenSurface::size(), and QSize::width().
QEGLPbuffer::~QEGLPbuffer | ( | ) |
Definition at line 52 of file qeglpbuffer.cpp.
|
inlineoverridevirtual |
Returns the actual surface format of the offscreen surface.
Reimplemented from QPlatformOffscreenSurface.
Definition at line 30 of file qeglpbuffer_p.h.
|
overridevirtual |
Returns true
if the platform offscreen surface has been allocated.
Reimplemented from QPlatformOffscreenSurface.
Definition at line 58 of file qeglpbuffer.cpp.
|
inline |
Definition at line 33 of file qeglpbuffer_p.h.