15 QSGOpaqueTextureMaterial();
17 QSGMaterialType *type()
const override;
18 QSGMaterialShader *createShader(QSGRendererInterface::RenderMode renderMode)
const override;
19 int compare(
const QSGMaterial *other)
const override;
21 void setTexture(QSGTexture *texture);
22 QSGTexture *texture()
const {
return m_texture; }
24 void setMipmapFiltering(QSGTexture::Filtering filteringType) { m_mipmap_filtering = filteringType; }
25 QSGTexture::Filtering mipmapFiltering()
const {
return QSGTexture::Filtering(m_mipmap_filtering); }
27 void setFiltering(QSGTexture::Filtering filteringType) { m_filtering = filteringType; }
28 QSGTexture::Filtering filtering()
const {
return QSGTexture::Filtering(m_filtering); }
30 void setHorizontalWrapMode(QSGTexture::WrapMode mode) { m_horizontal_wrap = mode; }
31 QSGTexture::WrapMode horizontalWrapMode()
const {
return QSGTexture::WrapMode(m_horizontal_wrap); }
33 void setVerticalWrapMode(QSGTexture::WrapMode mode) { m_vertical_wrap = mode; }
34 QSGTexture::WrapMode verticalWrapMode()
const {
return QSGTexture::WrapMode(m_vertical_wrap); }
36 void setAnisotropyLevel(QSGTexture::AnisotropyLevel level) { m_anisotropy_level = level; }
37 QSGTexture::AnisotropyLevel anisotropyLevel()
const {
return QSGTexture::AnisotropyLevel(m_anisotropy_level); }
40 QSGTexture *m_texture;
43 uint m_mipmap_filtering: 2;
44 uint m_horizontal_wrap : 1;
45 uint m_vertical_wrap: 1;
46 uint m_anisotropy_level : 3;
The QSGOpaqueTextureMaterial class provides a convenient way of rendering textured geometry in the sc...
The QSGTextureMaterial class provides a convenient way of rendering textured geometry in the scene gr...