neighboring texels.
*/
+/*!
+ \fn QSGTexture::QSGTexture(QSGTexturePrivate &dd)
+ \internal
+ */
+
+/*!
+ Constructs the QSGTexture base class.
+ */
QSGTexture::QSGTexture()
: QObject(*(new QSGTexturePrivate))
{
#endif
}
+/*!
+ Destroys the QSGTexture.
+ */
QSGTexture::~QSGTexture()
{
#ifndef QT_NO_DEBUG
*/
/*!
+ \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.
\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
}
/*!
+ \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.
}
}
+/*!
+ Returns the sampling mode to be used for this texture.
+ */
QSGTexture::Filtering QSGTexture::filtering() const
{
return (QSGTexture::Filtering) d_func()->filterMode;
}
}
+/*!
+ Returns the horizontal wrap mode to be used for this texture.
+ */
QSGTexture::WrapMode QSGTexture::horizontalWrapMode() const
{
return (QSGTexture::WrapMode) d_func()->horizontalWrap;
+/*!
+ Sets the vertical wrap mode to be used for the upcoming bind() call to \a vwrap
+ */
void QSGTexture::setVerticalWrapMode(WrapMode vwrap)
{
Q_D(QSGTexture);
}
}
+/*!
+ Returns the vertical wrap mode to be used for this texture.
+ */
QSGTexture::WrapMode QSGTexture::verticalWrapMode() const
{
return (QSGTexture::WrapMode) d_func()->verticalWrap;