Qt 4.8
Public Functions | Protected Functions | List of all members
QGLPixmapFilterBase Class Referenceabstract

#include <qglpixmapfilter_p.h>

Inheritance diagram for QGLPixmapFilterBase:
QGLPixmapFilter< Filter > QGLPixmapFilter< QPixmapBlurFilter > QGLPixmapFilter< QPixmapColorizeFilter > QGLPixmapFilter< QPixmapConvolutionFilter > QGLPixmapFilter< QPixmapDropShadowFilter > QGLPixmapBlurFilter QGLPixmapColorizeFilter QGLPixmapConvolutionFilter QGLPixmapDropShadowFilter

Public Functions

virtual ~QGLPixmapFilterBase ()
 

Protected Functions

void bindTexture (const QPixmap &src) const
 
void drawImpl (QPainter *painter, const QPointF &pos, const QPixmap &src, const QRectF &srcRect=QRectF()) const
 
virtual bool processGL (QPainter *painter, const QPointF &pos, const QPixmap &src, const QRectF &srcRect) const =0
 

Detailed Description

Definition at line 68 of file qglpixmapfilter_p.h.

Constructors and Destructors

◆ ~QGLPixmapFilterBase()

virtual QGLPixmapFilterBase::~QGLPixmapFilterBase ( )
inlinevirtual

Definition at line 71 of file qglpixmapfilter_p.h.

71 {}

Functions

◆ bindTexture()

void QGLPixmapFilterBase::bindTexture ( const QPixmap src) const
protected

Definition at line 69 of file qglpixmapfilter.cpp.

70 {
72 }
GLuint bindTexture(const QImage &image, GLenum target, GLint format, BindOptions options)
Generates and binds a 2D GL texture to the current context, based on image.
Definition: qgl.cpp:2854
#define GL_TEXTURE_2D
static const QGLContext * currentContext()
Returns the current context, i.e.
Definition: qgl.cpp:3545
The QGLContext class encapsulates an OpenGL rendering context.
Definition: qgl.h:310
#define GL_RGBA

◆ drawImpl()

void QGLPixmapFilterBase::drawImpl ( QPainter painter,
const QPointF pos,
const QPixmap src,
const QRectF srcRect = QRectF() 
) const
protected

Definition at line 74 of file qglpixmapfilter.cpp.

Referenced by QGLPixmapFilter< QPixmapBlurFilter >::draw().

75 {
76  processGL(painter, pos, src, source);
77 }
virtual bool processGL(QPainter *painter, const QPointF &pos, const QPixmap &src, const QRectF &srcRect) const =0

◆ processGL()

virtual bool QGLPixmapFilterBase::processGL ( QPainter painter,
const QPointF pos,
const QPixmap src,
const QRectF srcRect 
) const
protectedpure virtual

The documentation for this class was generated from the following files: