Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgopenvginternalimagenode.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSGOPENVGINTERNALIMAGENODE_H
5#define QSGOPENVGINTERNALIMAGENODE_H
6
7#include <private/qsgadaptationlayer_p.h>
9
10#include <VG/openvg.h>
11
13
15{
16public:
19
20 void render() override;
21
22 void setTargetRect(const QRectF &rect) override;
23 void setInnerTargetRect(const QRectF &rect) override;
24 void setInnerSourceRect(const QRectF &rect) override;
25 void setSubSourceRect(const QRectF &rect) override;
26 void setTexture(QSGTexture *texture) override;
27 void setMirror(bool mirror) override;
28 void setMipmapFiltering(QSGTexture::Filtering filtering) override;
29 void setFiltering(QSGTexture::Filtering filtering) override;
30 void setHorizontalWrapMode(QSGTexture::WrapMode wrapMode) override;
31 void setVerticalWrapMode(QSGTexture::WrapMode wrapMode) override;
32 void update() override;
33
34 void preprocess() override;
35
36private:
37
38 QRectF m_targetRect;
39 QRectF m_innerTargetRect;
40 QRectF m_innerSourceRect = QRectF(0, 0, 1, 1);
41 QRectF m_subSourceRect = QRectF(0, 0, 1, 1);
42
43 bool m_mirror = false;
44 bool m_smooth = true;
45 bool m_tileHorizontal = false;
46 bool m_tileVertical = false;
47
48 QSGTexture *m_texture = nullptr;
49
50 VGImage m_subSourceRectImage = 0;
51 bool m_subSourceRectImageDirty = true;
52};
53
55
56#endif // QSGOPENVGINTERNALIMAGENODE_H
\inmodule QtCore\reentrant
Definition qrect.h:484
void setInnerTargetRect(const QRectF &rect) override
void setSubSourceRect(const QRectF &rect) override
void setVerticalWrapMode(QSGTexture::WrapMode wrapMode) override
void setHorizontalWrapMode(QSGTexture::WrapMode wrapMode) override
void setTexture(QSGTexture *texture) override
void setMipmapFiltering(QSGTexture::Filtering filtering) override
void setFiltering(QSGTexture::Filtering filtering) override
void setTargetRect(const QRectF &rect) override
void setInnerSourceRect(const QRectF &rect) override
void preprocess() override
Override this function to do processing on the node before it is rendered.
\inmodule QtQuick
Definition qsgtexture.h:20
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
Definition qsgtexture.h:34
WrapMode
Specifies how the sampler should treat texture coordinates.
Definition qsgtexture.h:28
rect
[4]
Combined button and popup list for selecting options.
GLenum GLuint texture