4#ifndef QQUICKSHAPESTROKENODE_P_P_H
5#define QQUICKSHAPESTROKENODE_P_P_H
7#include <QtQuick/qsgmaterial.h>
31 QStringLiteral(
":/qt-project.org/shapes/shaders_ng/shapestroke.vert.qsb"));
33 QStringLiteral(
":/qt-project.org/shapes/shaders_ng/shapestroke.frag.qsb"));
QQuickShapeStrokeMaterialShader()
bool updateUniformData(RenderState &state, QSGMaterial *newEffect, QSGMaterial *oldEffect) override
This function is called by the scene graph to get the contents of the shader program's uniform buffer...
int compare(const QSGMaterial *other) const override
Compares this material to other and returns 0 if they are equal; -1 if this material should sort befo...
QQuickShapeStrokeNode * m_node
QSGMaterialType * type() const override
This function is called by the scene graph to query an identifier that is unique to the QSGMaterialSh...
QQuickShapeStrokeNode * node() const
QQuickShapeStrokeMaterial(QQuickShapeStrokeNode *node)
QSGMaterialShader * createShader(QSGRendererInterface::RenderMode) const override
This function returns a new instance of a the QSGMaterialShader implementation used to render geometr...
The QSGMaterialShader class represents a graphics API independent shader program.
void setShaderFileName(Stage stage, const QString &filename)
Sets the filename for the shader for the specified stage.
The QSGMaterial class encapsulates rendering state for a shader program.
void setFlag(Flags flags, bool on=true)
Sets the flags flags on this material if on is true; otherwise clears the attribute.
RenderMode
\value RenderMode2D Normal 2D rendering \value RenderMode2DNoDepthBuffer Normal 2D rendering with dep...
Combined button and popup list for selecting options.
#define QStringLiteral(str)
The QSGMaterialType class is used as a unique type token in combination with QSGMaterial.