4#ifndef QSGMATERIALSHADER_H
5#define QSGMATERIALSHADER_H
7#include <QtQuick/qtquickglobal.h>
9#include <QtGui/QMatrix4x4>
10#include <QtGui/QColor>
11#include <QtQuick/qsgmaterialtype.h>
30 DirtyOpacity = 0x0002,
31 DirtyCachedMaterialData = 0x0004,
36 inline DirtyStates dirtyStates()
const {
return m_dirty; }
41 float opacity()
const;
47 int projectionMatrixCount()
const;
48 QRect viewportRect()
const;
50 float determinant()
const;
51 float devicePixelRatio()
const;
131 UpdatesGraphicsPipelineState = 0x0001
143 virtual bool updateUniformData(RenderState &
state,
149 virtual bool updateGraphicsPipelineState(RenderState &
state, GraphicsPipelineState *ps,
156 int combinedImageSamplerCount(
int binding)
const;
163 void setShaderFileName(Stage stage,
const QString &filename);
164 void setShaderFileName(Stage stage,
const QString &filename,
int viewCount);
169 QScopedPointer<QSGMaterialShaderPrivate> d_ptr;
The QColor class provides colors based on RGB, HSV or CMYK values.
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
\inmodule QtCore\reentrant
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h
Encapsulates the current rendering state during a call to QSGMaterialShader::updateUniformData() and ...
bool isMatrixDirty() const
Returns true if the dirtyStates() contain the dirty matrix state, otherwise returns false.
DirtyState
\value DirtyMatrix Used to indicate that the matrix has changed and must be updated.
bool isOpacityDirty() const
Returns true if the dirtyStates() contains the dirty opacity state, otherwise returns false.
The QSGMaterialShader class represents a graphics API independent shader program.
Flag
Flag values to indicate special material properties.
The QSGMaterial class encapsulates rendering state for a shader program.
The renderer class is the abstract baseclass used for rendering the QML scene graph.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Describes state changes that the material wants to apply to the currently active graphics pipeline st...
PolygonMode
Specifies the polygon rasterization mode.
bool separateBlendFactors