4#ifndef QSGTEXTUREMATERIAL_H
5#define QSGTEXTUREMATERIAL_H
7#include <QtQuick/qsgmaterial.h>
8#include <QtQuick/qsgtexture.h>
The QSGMaterialShader class represents a graphics API independent shader program.
The QSGMaterial class encapsulates rendering state for a shader program.
virtual QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const =0
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
virtual int compare(const QSGMaterial *other) const
Compares this material to other and returns 0 if they are equal; -1 if this material should sort befo...
virtual QSGMaterialType * type() const =0
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
The QSGOpaqueTextureMaterial class provides a convenient way of rendering textured geometry in the sc...
QSGTexture::AnisotropyLevel anisotropyLevel() const
Returns this material's anistropy level.
QSGTexture::WrapMode verticalWrapMode() const
Returns this material's vertical wrap mode.
void setFiltering(QSGTexture::Filtering filteringType)
Sets the filtering to filtering.
void setVerticalWrapMode(QSGTexture::WrapMode mode)
Sets the vertical wrap mode to mode.
void setHorizontalWrapMode(QSGTexture::WrapMode mode)
Sets the horizontal wrap mode to mode.
void setAnisotropyLevel(QSGTexture::AnisotropyLevel level)
Sets this material's anistropy level to level.
QSGTexture::Filtering filtering() const
Returns this material's filtering mode.
void setMipmapFiltering(QSGTexture::Filtering filteringType)
Sets the mipmap mode to filtering.
QSGTexture::WrapMode horizontalWrapMode() const
Returns this material's horizontal wrap mode.
QSGTexture::Filtering mipmapFiltering() const
Returns this material's mipmap filtering mode.
QSGTexture * texture() const
Returns this texture material's texture.
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
The QSGTextureMaterial class provides a convenient way of rendering textured geometry in the scene gr...
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
WrapMode
Specifies how the sampler should treat texture coordinates.
AnisotropyLevel
Specifies the anisotropic filtering level to be used when the texture is not screen aligned.
Combined button and popup list for selecting options.
GLenum GLuint GLint level
The QSGMaterialType class is used as a unique type token in combination with QSGMaterial.