2023-12-07 10:24:47 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <qsgnode.h>
|
|
|
|
|
2023-12-19 17:37:34 +00:00
|
|
|
class TextureFilterMaterial;
|
2023-12-18 08:39:17 +00:00
|
|
|
class TextureFilterNodePrivate;
|
2023-12-07 10:24:47 +00:00
|
|
|
|
2023-12-19 17:37:34 +00:00
|
|
|
class QSGTexture;
|
|
|
|
|
2023-12-18 08:39:17 +00:00
|
|
|
class TextureFilterNode : public QSGGeometryNode
|
2023-12-07 10:24:47 +00:00
|
|
|
{
|
|
|
|
using Inherited = QSGGeometryNode;
|
|
|
|
|
|
|
|
public:
|
2023-12-18 08:39:17 +00:00
|
|
|
TextureFilterNode();
|
|
|
|
~TextureFilterNode();
|
2023-12-07 10:24:47 +00:00
|
|
|
|
|
|
|
void setTexture( QSGTexture* );
|
2023-12-19 17:37:34 +00:00
|
|
|
QSGTexture* texture() const;
|
2023-12-07 10:24:47 +00:00
|
|
|
|
2023-12-19 11:45:40 +00:00
|
|
|
void setOwnsTexture( bool );
|
|
|
|
bool ownsTexture() const;
|
2023-12-19 17:37:34 +00:00
|
|
|
|
2023-12-07 10:24:47 +00:00
|
|
|
void setRect( const QRectF& );
|
2023-12-21 06:14:55 +00:00
|
|
|
QRectF rect() const;
|
2023-12-07 10:24:47 +00:00
|
|
|
|
2023-12-19 17:37:34 +00:00
|
|
|
void setTextureMaterial( TextureFilterMaterial* );
|
|
|
|
TextureFilterMaterial* textureMaterial() const;
|
|
|
|
|
2023-12-07 10:24:47 +00:00
|
|
|
private:
|
2023-12-19 17:37:34 +00:00
|
|
|
void setMaterial( QSGMaterial* ) = delete;
|
|
|
|
|
2023-12-18 08:39:17 +00:00
|
|
|
Q_DECLARE_PRIVATE( TextureFilterNode )
|
2023-12-07 10:24:47 +00:00
|
|
|
};
|