45 #include <private/qpainter_p.h> 71 d->m_manager->removeCustomStage();
72 d->m_manager->sharedShaders->cleanupCustomStage(
this);
80 d->m_manager->setDirty();
87 qWarning(
"QGLCustomShaderStage::setOnPainter() - paint engine not OpenGL2");
91 qWarning(
"Custom shader is already set on a painter");
97 d->m_manager->setCustomStage(
this);
114 d->m_manager->setCustomStage(0);
The QPainter class performs low-level painting on widgets and other paint devices.
static QGLEngineShaderManager * shaderManagerForEngine(QGL2PaintEngineEx *engine)
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
QGLCustomShaderStagePrivate()
void setSource(const QByteArray &)
virtual ~QGLCustomShaderStage()
QByteArray source() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual Type type() const =0
Reimplement this function to return the paint engine Type.
Q_CORE_EXPORT void qWarning(const char *,...)
QPointer< QGLEngineShaderManager > m_manager
QPaintEngine * paintEngine() const
Returns the paint engine that the painter is currently operating on if the painter is active; otherwi...
bool setOnPainter(QPainter *)
void removeFromPainter(QPainter *)