#include <mythpainter_ogl.h>
Public Member Functions | |
| MythOpenGLPainter (MythRenderOpenGL *render=NULL, QGLWidget *parent=NULL) | |
| ~MythOpenGLPainter () | |
| void | SetTarget (int new_target) |
| void | SetSwapControl (bool swap) |
| virtual QString | GetName (void) |
| virtual bool | SupportsAnimation (void) |
| virtual bool | SupportsAlpha (void) |
| virtual bool | SupportsClipping (void) |
| virtual void | FreeResources (void) |
| virtual void | Begin (QPaintDevice *parent) |
| virtual void | End () |
| virtual void | DrawImage (const QRect &dest, MythImage *im, const QRect &src, int alpha) |
| virtual void | DrawRect (const QRect &area, const QBrush &fillBrush, const QPen &linePen, int alpha) |
| virtual void | DrawRoundRect (const QRect &area, int cornerRadius, const QBrush &fillBrush, const QPen &linePen, int alpha) |
| virtual void | PushTransformation (const UIEffects &fx, QPointF center=QPointF()) |
| virtual void | PopTransformation (void) |
Protected Member Functions | |
| virtual MythImage * | GetFormatImagePriv (void) |
| virtual void | DeleteFormatImagePriv (MythImage *im) |
| void | ClearCache (void) |
| void | DeleteTextures (void) |
| int | GetTextureFromCache (MythImage *im) |
Protected Attributes | |
| QGLWidget * | realParent |
| MythRenderOpenGL * | realRender |
| int | target |
| bool | swapControl |
| QMap< MythImage *, uint > | m_ImageIntMap |
| std::list< MythImage * > | m_ImageExpireList |
| std::list< uint > | m_textureDeleteList |
| QMutex | m_textureDeleteLock |
Definition at line 13 of file mythpainter_ogl.h.
| MythOpenGLPainter::MythOpenGLPainter | ( | MythRenderOpenGL * | render = NULL, |
|
| QGLWidget * | parent = NULL | |||
| ) |
Definition at line 20 of file mythpainter_ogl.cpp.
| MythOpenGLPainter::~MythOpenGLPainter | ( | ) |
Definition at line 32 of file mythpainter_ogl.cpp.
| void MythOpenGLPainter::SetTarget | ( | int | new_target | ) | [inline] |
Definition at line 19 of file mythpainter_ogl.h.
| void MythOpenGLPainter::SetSwapControl | ( | bool | swap | ) | [inline] |
Definition at line 20 of file mythpainter_ogl.h.
Referenced by VideoOutputOpenGL::DestroyGPUResources(), and VideoOutputOpenGL::InitOSD().
| virtual QString MythOpenGLPainter::GetName | ( | void | ) | [inline, virtual] |
Implements MythPainter.
Definition at line 21 of file mythpainter_ogl.h.
| virtual bool MythOpenGLPainter::SupportsAnimation | ( | void | ) | [inline, virtual] |
Implements MythPainter.
Definition at line 22 of file mythpainter_ogl.h.
| virtual bool MythOpenGLPainter::SupportsAlpha | ( | void | ) | [inline, virtual] |
Implements MythPainter.
Definition at line 23 of file mythpainter_ogl.h.
| virtual bool MythOpenGLPainter::SupportsClipping | ( | void | ) | [inline, virtual] |
Implements MythPainter.
Definition at line 24 of file mythpainter_ogl.h.
| void MythOpenGLPainter::FreeResources | ( | void | ) | [virtual] |
Reimplemented from MythPainter.
Definition at line 38 of file mythpainter_ogl.cpp.
Referenced by ~MythOpenGLPainter().
| void MythOpenGLPainter::Begin | ( | QPaintDevice * | parent | ) | [virtual] |
Reimplemented from MythPainter.
Definition at line 75 of file mythpainter_ogl.cpp.
| void MythOpenGLPainter::End | ( | void | ) | [virtual] |
Reimplemented from MythPainter.
Definition at line 113 of file mythpainter_ogl.cpp.
| void MythOpenGLPainter::DrawImage | ( | const QRect & | dest, | |
| MythImage * | im, | |||
| const QRect & | src, | |||
| int | alpha | |||
| ) | [virtual] |
Implements MythPainter.
Definition at line 183 of file mythpainter_ogl.cpp.
| void MythOpenGLPainter::DrawRect | ( | const QRect & | area, | |
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) | [virtual] |
Reimplemented from MythPainter.
Definition at line 191 of file mythpainter_ogl.cpp.
| void MythOpenGLPainter::DrawRoundRect | ( | const QRect & | area, | |
| int | cornerRadius, | |||
| const QBrush & | fillBrush, | |||
| const QPen & | linePen, | |||
| int | alpha | |||
| ) | [virtual] |
Reimplemented from MythPainter.
Definition at line 203 of file mythpainter_ogl.cpp.
| void MythOpenGLPainter::PushTransformation | ( | const UIEffects & | fx, | |
| QPointF | center = QPointF() | |||
| ) | [virtual] |
Reimplemented from MythPainter.
Definition at line 231 of file mythpainter_ogl.cpp.
| void MythOpenGLPainter::PopTransformation | ( | void | ) | [virtual] |
Reimplemented from MythPainter.
Definition at line 237 of file mythpainter_ogl.cpp.
| virtual MythImage* MythOpenGLPainter::GetFormatImagePriv | ( | void | ) | [inline, protected, virtual] |
Implements MythPainter.
Definition at line 41 of file mythpainter_ogl.h.
| void MythOpenGLPainter::DeleteFormatImagePriv | ( | MythImage * | im | ) | [protected, virtual] |
Implements MythPainter.
Definition at line 220 of file mythpainter_ogl.cpp.
Referenced by GetTextureFromCache().
| void MythOpenGLPainter::ClearCache | ( | void | ) | [protected] |
Definition at line 60 of file mythpainter_ogl.cpp.
Referenced by FreeResources().
| void MythOpenGLPainter::DeleteTextures | ( | void | ) | [protected] |
Definition at line 44 of file mythpainter_ogl.cpp.
Referenced by Begin(), FreeResources(), and GetTextureFromCache().
| int MythOpenGLPainter::GetTextureFromCache | ( | MythImage * | im | ) | [protected] |
Definition at line 131 of file mythpainter_ogl.cpp.
Referenced by DrawImage().
QGLWidget* MythOpenGLPainter::realParent [protected] |
Definition at line 48 of file mythpainter_ogl.h.
Referenced by Begin(), and MythOpenGLPainter().
MythRenderOpenGL* MythOpenGLPainter::realRender [protected] |
Definition at line 49 of file mythpainter_ogl.h.
Referenced by Begin(), DeleteTextures(), DrawImage(), DrawRect(), DrawRoundRect(), End(), GetTextureFromCache(), MythOpenGLPainter(), PopTransformation(), and PushTransformation().
int MythOpenGLPainter::target [protected] |
Definition at line 50 of file mythpainter_ogl.h.
Referenced by Begin(), DrawImage(), and End().
bool MythOpenGLPainter::swapControl [protected] |
Definition at line 51 of file mythpainter_ogl.h.
QMap<MythImage *, uint> MythOpenGLPainter::m_ImageIntMap [protected] |
Definition at line 53 of file mythpainter_ogl.h.
Referenced by ClearCache(), DeleteFormatImagePriv(), and GetTextureFromCache().
std::list<MythImage *> MythOpenGLPainter::m_ImageExpireList [protected] |
Definition at line 54 of file mythpainter_ogl.h.
Referenced by ClearCache(), DeleteFormatImagePriv(), and GetTextureFromCache().
std::list<uint> MythOpenGLPainter::m_textureDeleteList [protected] |
Definition at line 55 of file mythpainter_ogl.h.
Referenced by ClearCache(), DeleteFormatImagePriv(), and DeleteTextures().
QMutex MythOpenGLPainter::m_textureDeleteLock [protected] |
Definition at line 56 of file mythpainter_ogl.h.
Referenced by ClearCache(), DeleteFormatImagePriv(), and DeleteTextures().
1.6.3