4#ifndef QSGDEFAULTSPRITENODE_H
5#define QSGDEFAULTSPRITENODE_H
18#include <private/qtquickglobal_p.h>
22#include <private/qsgadaptationlayer_p.h>
25class QQuickSpriteMaterial;
33 void setSourceA(
const QPoint &source)
override;
34 void setSourceB(
const QPoint &source)
override;
37 void setSize(
const QSizeF &size)
override;
38 void setFiltering(QSGTexture::Filtering filtering)
override;
41 void updateGeometry();
44 QSGGeometry *m_geometry;
QSGMaterialShader * createShader(QSGRendererInterface::RenderMode renderMode) const override
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
QSGMaterialType * type() const override
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
void setTexture(QSGTexture *texture) override
void setSheetSize(const QSize &size) override
void setSourceA(const QPoint &source) override
void setSize(const QSizeF &size) override
void setSpriteSize(const QSize &size) override
void setSourceB(const QPoint &source) override
void setTime(float time) override
void setFiltering(QSGTexture::Filtering filtering) override
bool updateUniformData(RenderState &state, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to get the contents of the shader program's uniform buffer...
SpriteMaterialRhiShader(int viewCount)
void updateSampledImage(RenderState &state, int binding, QSGTexture **texture, QSGMaterial *newMaterial, QSGMaterial *oldMaterial) override
This function is called by the scene graph to prepare use of sampled images in the shader,...
QT_REQUIRE_CONFIG(quick_sprite)
static QSGGeometry::Attribute Sprite_Attributes[]
static QSGGeometry::AttributeSet Sprite_AttributeSet