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
qsgopenvgspritenode.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 QSGOPENVGSPRITENODE_H
5#define QSGOPENVGSPRITENODE_H
6
7#include <private/qsgadaptationlayer_p.h>
9
10QT_REQUIRE_CONFIG(quick_sprite);
11
14class QSGOpenVGSpriteNode : public QSGSpriteNode, public QSGOpenVGRenderable
15{
16public:
19
20 void setTexture(QSGTexture *texture) override;
21 void setTime(float time) override;
22 void setSourceA(const QPoint &source) override;
23 void setSourceB(const QPoint &source) override;
24 void setSpriteSize(const QSize &size) override;
25 void setSheetSize(const QSize &size) override;
26 void setSize(const QSizeF &size) override;
27 void setFiltering(QSGTexture::Filtering filtering) override;
28 void update() override;
29
30 void render() override;
31
32private:
33 QSGOpenVGTexture *m_texture = nullptr;
34 float m_time;
35 QPoint m_sourceA;
36 QPoint m_sourceB;
37 QSize m_spriteSize;
38 QSize m_sheetSize;
39 QSizeF m_size;
40};
41
43
44#endif // QSGOPENVGSPRITENODE_H
\inmodule QtCore\reentrant
Definition qpoint.h:25
void setTexture(QSGTexture *texture) override
void setSize(const QSizeF &size) override
void setSourceA(const QPoint &source) override
void setSheetSize(const QSize &size) override
void setSourceB(const QPoint &source) override
void setFiltering(QSGTexture::Filtering filtering) override
void setTime(float time) override
void setSpriteSize(const QSize &size) override
\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
\inmodule QtCore
Definition qsize.h:208
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint texture
GLsizei GLsizei GLchar * source
#define QT_REQUIRE_CONFIG(feature)