blob: 1a64bdaace6b78e1a66594f1b8c10050d095f6cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QSGDEFAULTINTERNALIMAGENODE_P_H
#define QSGDEFAULTINTERNALIMAGENODE_P_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include <private/qsgadaptationlayer_p.h>
#include <private/qsgbasicinternalimagenode_p.h>
#include <QtQuick/qsgtexturematerial.h>
QT_BEGIN_NAMESPACE
class QSGDefaultRenderContext;
class Q_QUICK_EXPORT QSGSmoothTextureMaterial : public QSGTextureMaterial
{
public:
QSGSmoothTextureMaterial();
void setTexture(QSGTexture *texture);
protected:
QSGMaterialType *type() const override;
QSGMaterialShader *createShader(QSGRendererInterface::RenderMode renderMode) const override;
};
class Q_QUICK_EXPORT QSGDefaultInternalImageNode : public QSGBasicInternalImageNode
{
public:
QSGDefaultInternalImageNode(QSGDefaultRenderContext *rc);
void setMipmapFiltering(QSGTexture::Filtering filtering) override;
void setFiltering(QSGTexture::Filtering filtering) override;
void setHorizontalWrapMode(QSGTexture::WrapMode wrapMode) override;
void setVerticalWrapMode(QSGTexture::WrapMode wrapMode) override;
void updateMaterialAntialiasing() override;
void setMaterialTexture(QSGTexture *texture) override;
QSGTexture *materialTexture() const override;
bool updateMaterialBlending() override;
bool supportsWrap(const QSize &size) const override;
private:
QSGDefaultRenderContext *m_rc;
QSGOpaqueTextureMaterial m_material;
QSGTextureMaterial m_materialO;
QSGSmoothTextureMaterial m_smoothMaterial;
};
QT_END_NAMESPACE
#endif
|