aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Barron <jason.barron@nokia.com>2012-08-21 14:04:36 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-27 15:37:49 +0200
commite52d50fd7746c4d906b4886e437dc96a5c783950 (patch)
tree10156732faec35923f7954a9d1dc1dd036efdf2e /src
parentbf5f97ae626af46742c315fa0c504f170977bca0 (diff)
Document QSGTexture.
Task-number: QTBUG-23192 Change-Id: I4a91dfaa0aa80d3cdc6c785fcaefdeafe60a2149 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/quick/scenegraph/util/qsgtexture.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/quick/scenegraph/util/qsgtexture.cpp b/src/quick/scenegraph/util/qsgtexture.cpp
index facf077cd1..98378ca5db 100644
--- a/src/quick/scenegraph/util/qsgtexture.cpp
+++ b/src/quick/scenegraph/util/qsgtexture.cpp
@@ -247,6 +247,14 @@ static void qt_debug_remove_texture(QSGTexture* texture)
neighboring texels.
*/
+/*!
+ \fn QSGTexture::QSGTexture(QSGTexturePrivate &dd)
+ \internal
+ */
+
+/*!
+ Constructs the QSGTexture base class.
+ */
QSGTexture::QSGTexture()
: QObject(*(new QSGTexturePrivate))
{
@@ -255,6 +263,9 @@ QSGTexture::QSGTexture()
#endif
}
+/*!
+ Destroys the QSGTexture.
+ */
QSGTexture::~QSGTexture()
{
#ifndef QT_NO_DEBUG
@@ -276,6 +287,14 @@ QSGTexture::~QSGTexture()
*/
/*!
+ \fn QRectF QSGTexture::convertToNormalizedSourceRect(const QRectF &rect) const
+
+ Returns \a rect converted to normalized coordinates.
+
+ \sa normalizedTextureSubRect()
+ */
+
+/*!
This function returns a copy of the current texture which is removed
from its atlas.
@@ -322,7 +341,11 @@ bool QSGTexture::isAtlasTexture() const
\warning This function can only be called from the rendering thread.
*/
+/*!
+ \fn QSize QSGTexture::textureSize() const
+ Returns the size of the texture.
+ */
/*!
Returns the rectangle inside textureSize() that this texture
@@ -337,6 +360,12 @@ QRectF QSGTexture::normalizedTextureSubRect() const
}
/*!
+ \fn bool QSGTexture::hasAlphaChannel() const
+
+ Returns true if the texture data contains an alpha channel.
+ */
+
+/*!
\fn bool QSGTexture::hasMipmaps() const
Returns true if the texture data contains mipmap levels.
@@ -380,6 +409,9 @@ void QSGTexture::setFiltering(QSGTexture::Filtering filter)
}
}
+/*!
+ Returns the sampling mode to be used for this texture.
+ */
QSGTexture::Filtering QSGTexture::filtering() const
{
return (QSGTexture::Filtering) d_func()->filterMode;
@@ -400,6 +432,9 @@ void QSGTexture::setHorizontalWrapMode(WrapMode hwrap)
}
}
+/*!
+ Returns the horizontal wrap mode to be used for this texture.
+ */
QSGTexture::WrapMode QSGTexture::horizontalWrapMode() const
{
return (QSGTexture::WrapMode) d_func()->horizontalWrap;
@@ -407,6 +442,9 @@ QSGTexture::WrapMode QSGTexture::horizontalWrapMode() const
+/*!
+ Sets the vertical wrap mode to be used for the upcoming bind() call to \a vwrap
+ */
void QSGTexture::setVerticalWrapMode(WrapMode vwrap)
{
Q_D(QSGTexture);
@@ -416,6 +454,9 @@ void QSGTexture::setVerticalWrapMode(WrapMode vwrap)
}
}
+/*!
+ Returns the vertical wrap mode to be used for this texture.
+ */
QSGTexture::WrapMode QSGTexture::verticalWrapMode() const
{
return (QSGTexture::WrapMode) d_func()->verticalWrap;