qskinny/src/nodes/QskTextureNode.h

37 lines
882 B
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_TEXTURE_NODE_H
#define QSK_TEXTURE_NODE_H
#include "QskGlobal.h"
2018-07-19 14:10:48 +02:00
#include <qnamespace.h>
2018-08-03 08:15:28 +02:00
#include <qsgnode.h>
2017-07-21 18:21:34 +02:00
2020-11-01 15:44:15 +01:00
class QQuickWindow;
2017-07-21 18:21:34 +02:00
class QskTextureNodePrivate;
class QSK_EXPORT QskTextureNode : public QSGGeometryNode
{
2018-08-03 08:15:28 +02:00
public:
2017-07-21 18:21:34 +02:00
QskTextureNode();
2018-07-31 17:32:25 +02:00
~QskTextureNode() override;
2017-07-21 18:21:34 +02:00
2020-10-26 18:06:06 +01:00
bool isNull() const;
2020-11-01 15:44:15 +01:00
void setTexture( QQuickWindow*, const QRectF&, uint id,
Qt::Orientations mirrored = Qt::Orientations() );
2017-07-21 18:21:34 +02:00
2017-12-07 17:04:05 +01:00
uint textureId() const;
2020-11-01 15:44:15 +01:00
QRectF rect() const;
2017-07-21 18:21:34 +02:00
Qt::Orientations mirrored() const;
2018-08-03 08:15:28 +02:00
private:
2017-07-21 18:21:34 +02:00
Q_DECLARE_PRIVATE( QskTextureNode )
};
#endif