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;
45 QRect viewportRect()
const;
47 float determinant()
const;
48 float devicePixelRatio()
const;
117 UpdatesGraphicsPipelineState = 0x0001
129 virtual bool updateUniformData(RenderState &
state,
135 virtual bool updateGraphicsPipelineState(RenderState &
state, GraphicsPipelineState *ps,
142 int combinedImageSamplerCount(
int binding)
const;
149 void setShaderFileName(Stage stage,
const QString &filename);
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
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