5#include <QtQml/QQmlEngine>
8# include <QOpenGLTextureBlitter>
9# include <QOpenGLTexture>
10# include <QOpenGLFramebufferObject>
21#include <QtWaylandCompositor/private/qwaylandcompositor_p.h>
22#include <QtWaylandCompositor/QWaylandViewporter>
72 QWaylandCompositor::create();
92 if (
buffer.isSharedMemory()) {
93 QWaylandCompositor::grabSurface(grabber,
buffer);
119 glViewport(0, 0,
buffer.size().width(),
buffer.size().height());
135 GrabState *
state =
new GrabState;
136 state->grabber = grabber;
146#include "moc_qwaylandquickcompositor.cpp"
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
The QOpenGLFramebufferObject class encapsulates an OpenGL framebuffer object.
QImage toImage(bool flipped=true) const
Returns the contents of this framebuffer object as a QImage.
bool bind()
Switches rendering from the default, windowing system provided framebuffer to this framebuffer object...
The QOpenGLTextureBlitter class provides a convenient way to draw textured quads via OpenGL.
bool create()
Initializes the graphics resources used by the blitter.
Origin
\value OriginBottomLeft Indicates that the data in the texture follows the OpenGL convention of coord...
void blit(GLuint texture, const QMatrix4x4 &targetTransform, Origin sourceOrigin)
Performs the blit with the source texture texture.
void release()
Unbinds the graphics resources used by the blitter.
void bind(GLenum target=GL_TEXTURE_2D)
Binds the graphics resources used by the blitter.
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtWaylandCompositor
static QWaylandCompositorPrivate * get(QWaylandCompositor *compositor)
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
QWaylandSurface * createDefaultSurface() override
QWaylandQuickCompositorPrivate(QWaylandCompositor *compositor)
void grabSurface(QWaylandSurfaceGrabber *grabber, const QWaylandBufferRef &buffer) override
Grab the surface content from the given buffer.
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
QWaylandQuickCompositor(QObject *parent=nullptr)
void classBegin() override
Invoked after class creation, but before any properties have been set.
void create() override
\qmlproperty list QtWayland.Compositor::WaylandCompositor::extensions
\inmodule QtWaylandCompositor
void success(const QImage &image)
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
\inmodule QtWaylandCompositor
Combined button and popup list for selecting options.
static QOpenGLCompositor * compositor
QT_BEGIN_NAMESPACE typedef uchar * output
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent