aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/util/qsgimagenode.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-01-22 20:22:14 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-01-25 12:32:25 +0000
commit5ef3265cd46de6579399562429e26961d6f13885 (patch)
tree6b71510ab9168600a4a146cca878f7f031c3f8f5 /src/quick/scenegraph/util/qsgimagenode.h
parent3ca8c880c163708757a5e88fb7e01268b775dc0e (diff)
Add anisotropic filtering support to QSGTexture
This patch adds support to switch on anisotropic filtering on QSGTexture and to QSGDefaultImageNode. Not adding this support to QSGImageNode since it became public in 5.8, and it does not allow additional virtual methods anymore. Change-Id: Ibf1744845df2297f9129b1b5ce6a69d0a3b31c7c Reviewed-by: Andy Nichols <andy.nichols@qt.io> Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'src/quick/scenegraph/util/qsgimagenode.h')
-rw-r--r--src/quick/scenegraph/util/qsgimagenode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/util/qsgimagenode.h b/src/quick/scenegraph/util/qsgimagenode.h
index d25e732e4b..0e053c307f 100644
--- a/src/quick/scenegraph/util/qsgimagenode.h
+++ b/src/quick/scenegraph/util/qsgimagenode.h
@@ -67,6 +67,8 @@ public:
virtual void setMipmapFiltering(QSGTexture::Filtering filtering) = 0;
virtual QSGTexture::Filtering mipmapFiltering() const = 0;
+ // ### Qt6: Add anisotropy support here, and possibly a virtual hook or another mean to extend this class.
+
enum TextureCoordinatesTransformFlag {
NoTransform = 0x00,
MirrorHorizontally = 0x01,