QRenderTargetOutput Class

(Qt3DRender::QRenderTargetOutput)

The QRenderTargetOutput class allows the specification of an attachment of a render target (whether it is a color texture, a depth texture, etc... ). 更多...

头文件: #include <QRenderTargetOutput>
qmake: QT += 3drender
开始支持版本: Qt 5.7
Instantiated By: RenderTargetOutput
基类: Qt3DCore::QNode

公有类型

enum AttachmentPoint { Color0, Color1, Color2, Color3, ..., DepthStencil }

属性

公有函数

QRenderTargetOutput(Qt3DCore::QNode *parent = nullptr)
AttachmentPoint attachmentPoint() const
QAbstractTexture::CubeMapFace face() const
int layer() const
int mipLevel() const
QAbstractTexture *texture() const

公有槽函数

void setAttachmentPoint(AttachmentPoint attachmentPoint)
void setFace(QAbstractTexture::CubeMapFace face)
void setLayer(int layer)
void setMipLevel(int level)
void setTexture(QAbstractTexture *texture)

信号

void attachmentPointChanged(AttachmentPoint attachmentPoint)
void faceChanged(QAbstractTexture::CubeMapFace face)
void layerChanged(int layer)
void mipLevelChanged(int mipLevel)
void textureChanged(QAbstractTexture *texture)

受保护的函数

QRenderTargetOutput(QRenderTargetOutputPrivate &dd, Qt3DCore::QNode *parent = nullptr)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

The QRenderTargetOutput class allows the specification of an attachment of a render target (whether it is a color texture, a depth texture, etc... ).

A QRenderTargetOutput specifies the attachment point and parameters for texture that is attached to render target. In addition to the attachment point, texture miplevel, layer and cubemap face can be specified. The texture attached to the QRenderTargetOutput must be compatible with the given parameters.

成员类型

enum QRenderTargetOutput::AttachmentPoint

This enumeration specifies the values for the attachment point.

ConstantValueDescription
Qt3DRender::QRenderTargetOutput::Color00Color attachment point at index 0
Qt3DRender::QRenderTargetOutput::Color11Color attachment point at index 1
Qt3DRender::QRenderTargetOutput::Color22Color attachment point at index 2
Qt3DRender::QRenderTargetOutput::Color33Color attachment point at index 3
Qt3DRender::QRenderTargetOutput::Color44Color attachment point at index 4
Qt3DRender::QRenderTargetOutput::Color55Color attachment point at index 5
Qt3DRender::QRenderTargetOutput::Color66Color attachment point at index 6
Qt3DRender::QRenderTargetOutput::Color77Color attachment point at index 7
Qt3DRender::QRenderTargetOutput::Color88Color attachment point at index 8
Qt3DRender::QRenderTargetOutput::Color99Color attachment point at index 9
Qt3DRender::QRenderTargetOutput::Color1010Color attachment point at index 10
Qt3DRender::QRenderTargetOutput::Color1111Color attachment point at index 11
Qt3DRender::QRenderTargetOutput::Color1212Color attachment point at index 12
Qt3DRender::QRenderTargetOutput::Color1313Color attachment point at index 13
Qt3DRender::QRenderTargetOutput::Color1414Color attachment point at index 14
Qt3DRender::QRenderTargetOutput::Color1515Color attachment point at index 15
Qt3DRender::QRenderTargetOutput::Depth16Depth attachment point
Qt3DRender::QRenderTargetOutput::Stencil17Stencil attachment point
Qt3DRender::QRenderTargetOutput::DepthStencil18DepthStencil attachment point

属性

attachmentPoint : AttachmentPoint

Holds the attachment point of the QRenderTargetOutput.

访问函数:

AttachmentPoint attachmentPoint() const
void setAttachmentPoint(AttachmentPoint attachmentPoint)

Notifier signal:

void attachmentPointChanged(AttachmentPoint attachmentPoint)

face : Qt3DRender::QAbstractTexture::CubeMapFace

Holds the face of the attached cubemap texture the rendering is directed to.

访问函数:

QAbstractTexture::CubeMapFace face() const
void setFace(QAbstractTexture::CubeMapFace face)

Notifier signal:

void faceChanged(QAbstractTexture::CubeMapFace face)

layer : int

Holds the layer of the attached texture the rendering is directed to.

访问函数:

int layer() const
void setLayer(int layer)

Notifier signal:

void layerChanged(int layer)

mipLevel : int

Holds the miplevel of the attached texture the rendering is directed to.

访问函数:

int mipLevel() const
void setMipLevel(int level)

Notifier signal:

void mipLevelChanged(int mipLevel)

texture : QAbstractTexture *

Holds the texture attached to the attachment point.

访问函数:

QAbstractTexture *texture() const
void setTexture(QAbstractTexture *texture)

Notifier signal:

void textureChanged(QAbstractTexture *texture)

成员函数

QRenderTargetOutput::QRenderTargetOutput(Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QRenderTargetOutput.

[protected] QRenderTargetOutput::QRenderTargetOutput(QRenderTargetOutputPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Copy constructor.