Skip to content

Kuesa::Qt3D::FullScreenQuad

Module: Kuesa Qt 3D API

FullScreenQuad is a convenience Qt3DCore::QEntity subclass use to create a full screen quad. More...

#include <Kuesa/Qt3D/api/fx/fullscreenquad.h>

Inherits from Qt3DCore::QEntity

Public Functions

Name
FullScreenQuad(Qt3DRender::QMaterial * material, Qt3DCore::QNode * parent =nullptr)
~FullScreenQuad()
Qt3DRender::QLayer * layer() const
FullScreenQuad::layer.
Qt3DGeometry::QBuffer * buffer() const
void setViewportRect(const QRectF & vp)
QRectF viewportRect() const

Detailed Description

1
class Kuesa::Qt3D::FullScreenQuad;

FullScreenQuad is a convenience Qt3DCore::QEntity subclass use to create a full screen quad.

Since: Kuesa 2.0

Its useful for creating background which must be rendered independently from the scene or to create screen space effects on an image.

A Qt3DRender::QLayer is added to the FullScreenQuad entity which can be retrieved with layer().

Public Functions Documentation

function FullScreenQuad

1
2
3
4
explicit FullScreenQuad(
    Qt3DRender::QMaterial * material,
    Qt3DCore::QNode * parent =nullptr
)

Parameters:

  • material A material to be aggregated to the quad entity.
  • parent The parent node for the quad entity.

This material material can be used to implement a gradient color background or a screen space effect

function ~FullScreenQuad

1
~FullScreenQuad()

function layer

1
Qt3DRender::QLayer * layer() const

FullScreenQuad::layer.

Return: The Qt3DRender::QLayer added to this quad entity.

This layer can be used to filter render views and separate the quad entity render from the scene render.

function buffer

1
Qt3DGeometry::QBuffer * buffer() const

function setViewportRect

1
2
3
void setViewportRect(
    const QRectF & vp
)

Specifies the normalized coordinate rectangle vp subset of the input texture on which to apply the material. This usually should match the viewport rect used to render the scene.

function viewportRect

1
QRectF viewportRect() const

Updated on 2023-07-03 at 11:02:10 +0000