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>
|
|
|
|
|
|
|
|
class QRect;
|
|
|
|
class QSGTexture;
|
2023-12-18 08:02:45 +00:00
|
|
|
|
2023-12-18 08:39:17 +00:00
|
|
|
class TextureFilterNodePrivate;
|
2023-12-07 10:24:47 +00:00
|
|
|
|
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* );
|
|
|
|
QSGTexture* texture();
|
|
|
|
|
2023-12-19 11:45:40 +00:00
|
|
|
#if 0
|
|
|
|
// deriving from QSGImageNode ???
|
|
|
|
void setOwnsTexture( bool );
|
|
|
|
bool ownsTexture() const;
|
|
|
|
#endif
|
2023-12-07 10:24:47 +00:00
|
|
|
void setRect( const QRectF& );
|
|
|
|
|
|
|
|
private:
|
2023-12-18 08:39:17 +00:00
|
|
|
Q_DECLARE_PRIVATE( TextureFilterNode )
|
2023-12-07 10:24:47 +00:00
|
|
|
};
|