42 #ifndef SHADEREFFECTITEM_H 43 #define SHADEREFFECTITEM_H 45 #include <QDeclarativeItem> 152 #endif // SHADEREFFECTITEM_H The QVariant class acts like a union for the most common Qt data types.
void lookThroughShaderCode(const QString &code)
The QPainter class performs low-level painting on widgets and other paint devices.
void setMeshResolution(const QSize &size)
void meshResolutionChanged()
#define QT_END_NAMESPACE
This macro expands to.
void changeSource(int index)
QPointer< QWidget > widget
bool m_defaultVertexShader
void setSource(const QVariant &var, int index)
QSize meshResolution() const
void setFragmentShader(const QString &code)
QVector< const char * > m_attributeNames
bool m_checkedViewportUpdateMode
virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
This function is called to handle this item's changes in geometry from oldGeometry to newGeometry...
void disconnectPropertySignals()
The QByteArray class provides an array of bytes.
void setVertexShader(const QString &code)
void connectPropertySignals()
void vertexShaderChanged()
The QSignalMapper class bundles signals from identifiable senders.
void handleVisibilityChange()
virtual void componentComplete()
void setBlending(bool enable)
The QString class provides a Unicode character string.
void updateShaderProgram()
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
The QVector class is a template class that provides a dynamic array.
QString vertexShader() const
QMatrix matrix() const
Returns the item's affine transformation matrix.
void renderEffect(QPainter *painter, const QMatrix4x4 &matrix)
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool m_checkedShaderPrograms
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QDeclarativeItem class provides the most basic of all visual items in QML.
The QDeclarativeParserStatus class provides updates on the QML parser state.
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
QPointer< ShaderEffectSource > source
The ShaderEffectItem object alters the output of given item with OpenGL shaders.
QGLShaderProgram * m_program
#define Q_INTERFACES(x)
This macro tells Qt which interfaces the class implements.
QObject * parent() const
Returns a pointer to the parent object.
void checkViewportUpdateMode()
QString fragmentShader() const
void updateEffectState(const QMatrix4x4 &matrix)
The QSize class defines the size of a two-dimensional object using integer point precision.
QVector< SourceData > m_sources
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem...
The QGLShaderProgram class allows OpenGL shader programs to be linked and used.
QPointer< QDeclarativeItem > item
void fragmentShaderChanged()
void setActive(bool enable)
QSet< QByteArray > m_uniformNames