Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qandroidplatformoffscreensurface.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QANDROIDPLATFORMOFFSCREENSURFACETEXTURE_H
5#define QANDROIDPLATFORMOFFSCREENSURFACETEXTURE_H
6
7#include <qpa/qplatformoffscreensurface.h>
8#include <QtGui/qoffscreensurface_platform.h>
9
10#include <EGL/egl.h>
11
16{
17public:
20
21 QSurfaceFormat format() const override { return m_format; }
22 bool isValid() const override { return m_surface != EGL_NO_SURFACE; }
23
24 EGLSurface surface() const { return m_surface; }
25
26 ANativeWindow *nativeSurface() const override { return (ANativeWindow *)surface(); };
27
28private:
29 QSurfaceFormat m_format;
30 EGLDisplay m_display;
31 EGLSurface m_surface;
32};
33
35
36#endif // QANDROIDPLATFORMOFFSCREENSURFACETEXTURE_H
ANativeWindow * nativeSurface() const override
bool isValid() const override
Returns true if the platform offscreen surface has been allocated.
QSurfaceFormat format() const override
Returns the actual surface format of the offscreen surface.
Native interface to a offscreen surface on Android.
\inmodule QtGui
QOffscreenSurface * offscreenSurface() const
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
typedef EGLSurface(EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC)(EGLDisplay dpy
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform