75 , m_wrapMode(ClampToEdge)
76 , m_sourceRect(0, 0, 0, 0)
81 , m_multisampledFbo(0)
83 , m_dirtyTexture(true)
84 , m_dirtySceneGraph(true)
85 , m_multisamplingSupported(false)
86 , m_checkedForMultisamplingSupport(false)
309 #if !defined(QT_OPENGL_ES_2) 406 if (size.
width() < 1)
QSize size() const
Returns the size of the texture attached to this framebuffer object.
GLuint texture() const
Returns the texture id for the texture attached as the default rendering target in this framebuffer o...
void updateSizeAndTexture()
void markSceneGraphDirty()
#define GL_TEXTURE_MIN_FILTER
QGraphicsEffect * graphicsEffect() const
Returns a pointer to this item's effect if it has one; otherwise 0.
virtual ~ShaderEffectSource()
void markSourceSizeDirty()
void textureSizeChanged()
bool isValid() const
Returns true if the framebuffer object is valid.
QGraphicsEffect * effect
the effect attached to this item
void setTextureSize(const QSize &size)
#define GL_TEXTURE_WRAP_S
QPointer< QDeclarativeItem > m_sourceItem
void setHeight(int h)
Sets the height to the given height.
T * qobject_cast(QObject *object)
void update(const QRectF &rect=QRectF())
Schedules a redraw of the area covered by rect in this item.
void addRenderTarget(ShaderEffectSource *target)
ShaderEffectBuffer * m_multisampledFbo
void setSourceItem(QDeclarativeItem *item)
static const QGLContext * currentContext()
Returns the current context, i.e.
void setGraphicsEffect(QGraphicsEffect *effect)
Sets effect as the item's effect.
void setWidth(int w)
Sets the width to the given width.
void setParentItem(QDeclarativeItem *parent)
int width() const
Returns the width.
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.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
QGLFramebufferObjectFormat format() const
Returns the format of this framebuffer object.
void derefFromEffectItem()
void setHideSource(bool hide)
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
Disconnects signal in object sender from method in object receiver.
ShaderEffectSource(QDeclarativeItem *parent=0)
#define GL_TEXTURE_WRAP_T
QDeclarativeItem * parentItem() const
Returns the QDeclarativeItem parent of this item.
void hide()
Hides the item.
Q_INVOKABLE void grab()
Repaints the source item content into the texture.
int height() const
Returns the height.
void removeRenderTarget(ShaderEffectSource *target)
The QSize class defines the size of a two-dimensional object using integer point precision.
#define GL_TEXTURE_MAG_FILTER
bool isEmpty() const
Returns true if either of the width and height is less than or equal to 0; otherwise returns false...
void setSourceRect(const QRectF &rect)
ShaderEffectBuffer * m_fbo
void setWrapMode(WrapMode mode)
void markSourceItemDirty()