summaryrefslogtreecommitdiffstats
path: root/src/render/frontend/qblendstate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/frontend/qblendstate.cpp')
-rw-r--r--src/render/frontend/qblendstate.cpp106
1 files changed, 106 insertions, 0 deletions
diff --git a/src/render/frontend/qblendstate.cpp b/src/render/frontend/qblendstate.cpp
index 6f401d3e9..642ce03ab 100644
--- a/src/render/frontend/qblendstate.cpp
+++ b/src/render/frontend/qblendstate.cpp
@@ -64,11 +64,34 @@ public:
QBlendState::Blending m_dstAlpha;
};
+/*!
+ \class Qt3D::QBlendState
+ \inmodule Qt3DRender
+ \since 5.5
+ \brief Encapsulates blending information.
+ */
+
+/*!
+ \qmltype BlendState
+ \instantiates Qt3D::QBlendState
+ \inherits RenderState
+ \inqmlmodule Qt3D.Render
+ \since 5.5
+ \brief Encapsulates blending information
+*/
+
+/*!
+ The constructor creates a new blend state object with the specified \a parent.
+ */
QBlendState::QBlendState(QNode *parent)
: QRenderState(*new QBlendStatePrivate, parent)
{
}
+/*! \fn void QBlendState::copy(const QNode *ref)
+ \internal
+ Copies \a ref into this object.
+ */
void QBlendState::copy(const QNode *ref)
{
QRenderState::copy(ref);
@@ -79,11 +102,47 @@ void QBlendState::copy(const QNode *ref)
d_func()->m_dstRGB = refState->d_func()->m_dstRGB;
}
+/*!
+ \internal
+*/
QBlendState::QBlendState(QRenderState::Type type, QNode *parent)
: QRenderState(*new QBlendStatePrivate(type), parent)
{
}
+/*!
+ \enum Qt3D::QBlendState::Blending
+
+ \value Zero 0
+ \value One 1
+ \value SrcColor 0x0300
+ \value SrcAlpha 0x0302
+ \value Src1Alpha
+ \value Src1Color
+ \value DstColor 0x0306
+ \value DstAlpha 0x0304
+ \value SrcAlphaSaturate 0x0308
+ \value ConstantColor 0x8001
+ \value ConstantAlpha 0x8003
+ \value OneMinusSrcColor 0x0301
+ \value OneMinusSrcAlpha 0x0303
+ \value OneMinusDstAlpha 0x0305
+ \value OneMinusDstColor 0x0307
+ \value OneMinusConstantColor 0x8002
+ \value OneMinusConstantAlpha 0x8004
+ \value OneMinusSrc1Alpha
+ \value OneMinusSrc1Color0
+*/
+
+/*!
+ \qmlproperty enumeration Qt3D.render::BlendState::srcRGB
+
+ */
+
+/*!
+ \property Qt3D::QBlendState::srcRGB
+
+ */
QBlendState::Blending QBlendState::srcRGB() const
{
Q_D(const QBlendState);
@@ -99,6 +158,15 @@ void QBlendState::setSrcRGB(QBlendState::Blending srcRGB)
}
}
+/*!
+ \qmlproperty enumeration Qt3D.render::BlendState::dstRGB
+
+ */
+
+/*!
+ \property Qt3D::QBlendState::dstRGB
+
+ */
QBlendState::Blending QBlendState::dstRGB() const
{
Q_D(const QBlendState);
@@ -114,6 +182,15 @@ void QBlendState::setDstRGB(QBlendState::Blending dstRGB)
}
}
+/*!
+ \qmlproperty enumeration Qt3D.render::BlendState::srcAlpha
+
+ */
+
+/*!
+ \property Qt3D::QBlendState::srcAlpha
+
+ */
QBlendState::Blending QBlendState::srcAlpha() const
{
Q_D(const QBlendState);
@@ -129,6 +206,15 @@ void QBlendState::setSrcAlpha(QBlendState::Blending srcAlpha)
}
}
+/*!
+ \qmlproperty enumeration Qt3D.render::BlendState::dstAlpha
+
+ */
+
+/*!
+ \property Qt3D::QBlendState::dstAlpha
+
+ */
QBlendState::Blending QBlendState::dstAlpha() const
{
Q_D(const QBlendState);
@@ -144,6 +230,26 @@ void QBlendState::setDstAlpha(QBlendState::Blending dstAlpha)
}
}
+/*!
+ \class QBlendStateSeparate
+ \inmodule Qt3DRender
+ \since 5.5
+ \brief Encapsulates blending information.
+ */
+
+/*!
+ \qmltype BlendStateSeparate
+ \instantiates Qt3D::QBlendStateSeparate
+ \inherits RenderState
+ \inqmlmodule Qt3D.Render
+ \since 5.5
+ \brief Encapsulates blending information
+*/
+
+/*!
+ The constructor creates a QBlendStateSeparate with the
+ specified \a parent.
+ */
QBlendStateSeparate::QBlendStateSeparate(QNode *parent)
: QBlendState(QRenderState::BlendStateSeparate, parent)
{