ShadowedTextureMaterial
#include <shadowedtexturematerial.h>
Public Member Functions | |
int | compare (const QSGMaterial *other) const override |
QSGMaterialShader * | createShader (QSGRendererInterface::RenderMode) const override |
QSGMaterialType * | type () const override |
Public Member Functions inherited from ShadowedRectangleMaterial | |
Public Member Functions inherited from QSGMaterial | |
QSGMaterial::Flags | flags () const const |
void | setFlag (Flags flags, bool on) |
Public Attributes | |
QSGTexture * | textureSource = nullptr |
Public Attributes inherited from ShadowedRectangleMaterial | |
QVector2D | aspect = QVector2D{1.0, 1.0} |
QColor | color = Qt::white |
QVector2D | offset |
QVector4D | radius = QVector4D{0.0, 0.0, 0.0, 0.0} |
ShaderType | shaderType = ShaderType::Standard |
QColor | shadowColor = Qt::black |
float | size = 0.0 |
Public Attributes inherited from QSGMaterial | |
Blending | |
CustomCompileStep | |
NoBatching | |
RequiresDeterminant | |
RequiresFullMatrix | |
RequiresFullMatrixExceptTranslate | |
Static Public Attributes | |
static QSGMaterialType | staticType |
Static Public Attributes inherited from ShadowedRectangleMaterial | |
static QSGMaterialType | staticType |
Additional Inherited Members | |
Public Types inherited from ShadowedRectangleMaterial | |
enum class | ShaderType { Standard , LowPower } |
Public Types inherited from QSGMaterial | |
enum | Flag |
typedef | Flags |
Detailed Description
A material rendering a rectangle with a shadow.
This material uses a distance field shader to render a rectangle with a shadow below it, optionally with rounded corners.
Definition at line 19 of file shadowedtexturematerial.h.
Constructor & Destructor Documentation
◆ ShadowedTextureMaterial()
ShadowedTextureMaterial::ShadowedTextureMaterial | ( | ) |
Definition at line 13 of file shadowedtexturematerial.cpp.
Member Function Documentation
◆ compare()
|
overridevirtual |
Reimplemented from ShadowedRectangleMaterial.
Definition at line 29 of file shadowedtexturematerial.cpp.
◆ createShader()
|
overridevirtual |
Reimplemented from ShadowedRectangleMaterial.
Definition at line 19 of file shadowedtexturematerial.cpp.
◆ type()
|
overridevirtual |
Reimplemented from ShadowedRectangleMaterial.
Definition at line 24 of file shadowedtexturematerial.cpp.
Member Data Documentation
◆ staticType
|
static |
Definition at line 30 of file shadowedtexturematerial.h.
◆ textureSource
QSGTexture* ShadowedTextureMaterial::textureSource = nullptr |
Definition at line 28 of file shadowedtexturematerial.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:13:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.