Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QEGLPbuffer Class Reference

A pbuffer-based implementation of QPlatformOffscreenSurface for EGL. More...

#include <qeglpbuffer_p.h>

+ Inheritance diagram for QEGLPbuffer:
+ Collaboration diagram for QEGLPbuffer:

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
 
- Public Member Functions inherited from QPlatformOffscreenSurface
 QPlatformOffscreenSurface (QOffscreenSurface *offscreenSurface)
 
 ~QPlatformOffscreenSurface () override
 
QOffscreenSurfaceoffscreenSurface () const
 
QPlatformScreenscreen () const override
 Returns the platform screen handle corresponding to this QPlatformOffscreenSurface.
 
- Public Member Functions inherited from QPlatformSurface
virtual ~QPlatformSurface ()
 
QSurfacesurface () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QPlatformSurface
static bool isRasterSurface (QSurface *surface)
 
- Protected Attributes inherited from QPlatformOffscreenSurface
QScopedPointer< QPlatformOffscreenSurfacePrivated_ptr
 

Detailed Description

A pbuffer-based implementation of QPlatformOffscreenSurface for EGL.

Since
5.2

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.

Constructor & Destructor Documentation

◆ QEGLPbuffer()

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().

+ Here is the call graph for this function:

◆ ~QEGLPbuffer()

QEGLPbuffer::~QEGLPbuffer ( )

Definition at line 52 of file qeglpbuffer.cpp.

Member Function Documentation

◆ format()

QSurfaceFormat QEGLPbuffer::format ( ) const
inlineoverridevirtual

Returns the actual surface format of the offscreen surface.

Reimplemented from QPlatformOffscreenSurface.

Definition at line 30 of file qeglpbuffer_p.h.

◆ isValid()

bool QEGLPbuffer::isValid ( ) const
overridevirtual

Returns true if the platform offscreen surface has been allocated.

Reimplemented from QPlatformOffscreenSurface.

Definition at line 58 of file qeglpbuffer.cpp.

◆ pbuffer()

EGLSurface QEGLPbuffer::pbuffer ( ) const
inline

Definition at line 33 of file qeglpbuffer_p.h.


The documentation for this class was generated from the following files: