6#include <QtGui/QPainter>
23 m_texture = qobject_cast<QSGSoftwarePixmapTexture*>(
texture);
24 markDirty(DirtyMaterial);
31 markDirty(DirtyMaterial);
39 markDirty(DirtyMaterial);
47 markDirty(DirtyMaterial);
53 if (m_spriteSize !=
size) {
55 markDirty(DirtyMaterial);
61 if (m_sheetSize !=
size) {
63 markDirty(DirtyMaterial);
71 markDirty(DirtyGeometry);
95 QRectF(m_sourceA *
pixmap.devicePixelRatio(), m_spriteSize *
pixmap.devicePixelRatio()));
The QPainter class performs low-level painting on widgets and other paint devices.
void drawPixmap(const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect)
Draws the rectangular portion source of the given pixmap into the given target in the paint device.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
The QSGMaterial class encapsulates rendering state for a shader program.
const QPixmap & pixmap() const
void paint(QPainter *painter)
void setSize(const QSizeF &size) override
void setTexture(QSGTexture *texture) override
~QSGSoftwareSpriteNode() override
void setTime(float time) override
void setSourceB(const QPoint &source) override
void setSpriteSize(const QSize &size) override
void setFiltering(QSGTexture::Filtering filtering) override
void setSheetSize(const QSize &size) override
void setSourceA(const QPoint &source) override
Filtering
Specifies how sampling of texels should filter when texture coordinates are not pixel aligned.
constexpr qreal width() const noexcept
Returns the width.
constexpr qreal height() const noexcept
Returns the height.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei GLsizei GLchar * source