Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsgopenvgtexture.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 QSGOPENVGTEXTURE_H
5#define QSGOPENVGTEXTURE_H
6
7#include <private/qsgtexture_p.h>
8
9#include <VG/openvg.h>
10
12
14{
15public:
16 QSGOpenVGTexture(const QImage &image, uint flags);
18
19 qint64 comparisonKey() const override;
20 QSize textureSize() const override;
21 bool hasAlphaChannel() const override;
22 bool hasMipmaps() const override;
23
24private:
25 VGImage m_image;
26};
27
28QT_END_NAMESPACE
29
30#endif // QSGOPENVGTEXTURE_H
QSurfaceFormat defaultSurfaceFormat() const override
QSGNinePatchNode * createNinePatchNode() override
QSGRenderContext * createRenderContext() override
QSGImageNode * createImageNode() override
QSGInternalRectangleNode * createInternalRectangleNode() override
QSGRectangleNode * createRectangleNode() override
QSGPainterNode * createPainterNode(QQuickPaintedItem *item) override
QSGOpenVGGlyphNode(QSGRenderContext *rc)
void setOwnsTexture(bool owns) override
Sets whether the node takes ownership of the texture to owns.
void setTexture(QSGTexture *texture) override
Sets the texture of this image node to texture.
QSGTexture::AnisotropyLevel anisotropyLevel() const override
Returns this image node's anistropy level.
bool ownsTexture() const override
void setAnisotropyLevel(QSGTexture::AnisotropyLevel level) override
Sets this image node's anistropy level to level.
void setFiltering(QSGTexture::Filtering filtering) override
Sets the filtering to be used for this image node to filtering.
void setRect(const QRectF &rect) override
Sets the target rect of this image node to rect.
TextureCoordinatesTransformMode textureCoordinatesTransform() const override
Returns the mode used to generate texture coordinates for this node.
void setMipmapFiltering(QSGTexture::Filtering) override
Sets the mipmap filtering to be used for this image node to filtering.
QSGTexture::Filtering mipmapFiltering() const override
Returns the mipmap filtering for this image node.
QSGTexture::Filtering filtering() const override
Returns the filtering for this image node.
QRectF rect() const override
Returns the target rect of this image node.
QSGTexture * texture() const override
Returns the texture for this image node.
void setSourceRect(const QRectF &r) override
Sets the source rect of this image node to rect.
QRectF sourceRect() const override
Returns the source rect of this image node.
void setTextureCoordinatesTransform(TextureCoordinatesTransformMode transformNode) override
Sets the method used to generate texture coordinates to mode.
void setTexture(QSGTexture *texture) override
void setBounds(const QRectF &bounds) override
void setDevicePixelRatio(qreal ratio) override
void setPadding(qreal left, qreal top, qreal right, qreal bottom) override
QRectF rect() const override
Returns the rectangle that this rect node covers.
QColor color() const override
Returns the color of this rectangle.
void setRect(const QRectF &rect) override
Sets the rectangle of this rect node to rect.
void setTransform(const QOpenVGMatrix &transform) override
void setColor(const QColor &color) override
Sets the color of this rectangle to color.
ShaderSourceTypes shaderSourceType() const override
void renderNextFrame(QSGRenderer *renderer) override
int maxTextureSize() const override
static const int INIT_PARAMS_MAGIC
ShaderType shaderType() const override
GraphicsApi graphicsApi() const override
Returns the graphics API that is in use by the Qt Quick scenegraph.
void initialize(const QSGRenderContext::InitParams *params) override
ShaderCompilationTypes shaderCompilationType() const override
QSGRenderer * createRenderer(QSGRendererInterface::RenderMode renderMode=QSGRendererInterface::RenderMode2D) override
QSGTexture * createTexture(const QImage &image, uint flags) const override
QSGOpenVGFontGlyphCache * glyphCache(const QRawFont &rawFont)
const QOpenVGMatrix & transform() const
virtual void render()=0
virtual void setTransform(const QOpenVGMatrix &transform)
virtual void setOpacity(float opacity)
void nodeChanged(QSGNode *node, QSGNode::DirtyState state) override
QSGOpenVGRenderer(QSGRenderContext *context)
QSize textureSize() const override
Returns the size of the texture in pixels.
bool hasMipmaps() const override
Returns true if the texture data contains mipmap levels.
bool hasAlphaChannel() const override
Returns true if the texture data contains an alpha channel.
QSGOpenVGTexture(const QImage &image, uint flags)
qint64 comparisonKey() const override
Returns a key suitable for comparing textures.
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")